Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

open one form if record exists open another if doesn't

Status
Not open for further replies.

tizwaz

Technical User
Aug 8, 2002
437
GB
I have a form called frmSupplier in which if you double click the supplier ID it opens a 2nd form showing all the contracts awarded to the supplier. What I would like to do is if there are no contracts awarded to the supplier instead of opening a blank form open a 2nd form showing the contracts which the supplier has tendered for but not been successful. The supplierID is the same for both tables.

How can I write the code to say if no record exists in the 1st table check the 2nd and open a different form?
 
Have a look at the DLookUp (or DCount) functions.

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
I'm not really familiar with these functions - how would I use it in this situation?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top