If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Visual Basic > If amount = 0 then no record

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-28-11, 02:26
Jelleb18 Jelleb18 is offline
Registered User
 
Join Date: Jan 2011
Posts: 11
If amount = 0 then no record

How can I achieve the following thing.

If the amount is 0, the record must not be shown in the form.
If the amount is 1 or more, the record must be shown in the form.

(see attachment)

The text in the attachment is in Dutch, but it concerns 'aantal'.

Thanks in advance.
Attached Images
File Type: bmp HW.bmp (503.6 KB, 18 views)
Reply With Quote
  #2 (permalink)  
Old 01-28-11, 08:37
corncrowe corncrowe is offline
Registered User
 
Join Date: Aug 2004
Location: Dallas, Texas
Posts: 347
Depends on how you populate form. Do you have code to share? If the results are from a db query then filter out records in the sproc.
Reply With Quote
  #3 (permalink)  
Old 01-28-11, 08:44
Jelleb18 Jelleb18 is offline
Registered User
 
Join Date: Jan 2011
Posts: 11
Sorry, this is a dubble post

I already have the solution, but thanks anyway

If amount = 0 then no record

Quote:
Originally Posted by corncrowe View Post
Depends on how you populate form. Do you have code to share? If the results are from a db query then filter out records in the sproc.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On