Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - if statement problem
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

if statement problem

 Post Reply Post Reply Page  <12
Author
aalavar View Drop Down
Groupie
Groupie


Joined: 08 December 2003
Status: Offline
Points: 46
Post Options Post Options   Thanks (0) Thanks(0)   Quote aalavar Quote  Post ReplyReply Direct Link To This Post Posted: 07 January 2004 at 12:58pm
Room 9
1 happy valley 3500 3500
Room10
2 rounding the copelands 300 200
2 wandering oaks 300 200

Is this what you want your fields to look like?  If so your code works for me ...

Back to Top
Corky View Drop Down
Newbie
Newbie


Joined: 07 January 2004
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote Corky Quote  Post ReplyReply Direct Link To This Post Posted: 08 January 2004 at 4:19am

Thanks for all your help aalavar.  Afraid I tried something similar with no luck:-

still getting the output in the following format

Room 9

 

 

 

 

 

 

1

 

happy valley

 

3500

 

3500

Room 10

 

 

 

 

Back to Top
aalavar View Drop Down
Groupie
Groupie


Joined: 08 December 2003
Status: Offline
Points: 46
Post Options Post Options   Thanks (0) Thanks(0)   Quote aalavar Quote  Post ReplyReply Direct Link To This Post Posted: 08 January 2004 at 8:03am

That is very odd... I've tried it now with both SQL and Access databases, and it works correctly for me...

What is the location defined as in your table? 

Back to Top
Corky View Drop Down
Newbie
Newbie


Joined: 07 January 2004
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote Corky Quote  Post ReplyReply Direct Link To This Post Posted: 08 January 2004 at 9:36am

Thanks for all your help aalavar - I've just tried out the code on a different database and it's worked so at least I know it's something to do with the recordset being brought in.  I'm going to get hold of the database and go through the data directly but I'm confident now thats where the problem lies.

Once again thanks for all your help.

Back to Top
 Post Reply Post Reply Page  <12

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.