Runawaygeek
Registered User.
- Local time
- Today, 03:25
- Joined
- Mar 28, 2016
- Messages
- 77
Hi,
I have a first form, "Customer Details"
This links to 2 tables, Customer Info and Contacts.
on this form is a button that opens a second form
Technical Information
The table for this form has the ID of the Customer details form in colum CUST_ID.
I thought i would do a VBA button something like:
Is this the best approach, if so, can you please help me with the IF ID = CUST ID bit as I am sure this is formatted wrong.
or, is there a better approach??
Thanks,
Ben
I have a first form, "Customer Details"
This links to 2 tables, Customer Info and Contacts.
on this form is a button that opens a second form
Technical Information
The table for this form has the ID of the Customer details form in colum CUST_ID.
I thought i would do a VBA button something like:
Code:
If ID = CUST_ID THEN
DoCmd.OpenForm "Affiliate SOP", acNormal, , ("ID=" & ID)
ELSE
DoCmd.OpenForm "Affiliate SOP", acNewRec
END IF
Is this the best approach, if so, can you please help me with the IF ID = CUST ID bit as I am sure this is formatted wrong.
or, is there a better approach??
Thanks,
Ben