bloody_football
Registered User.
- Local time
- Tomorrow, 09:48
- Joined
- Sep 8, 2004
- Messages
- 70
I have a form which is a query, it is a quote and when it is finished the client information goes to the 'client' table (for re-use) and the financial data goes into the 'quotes' table. No when the user completes the form the form closes and another form opens with the same information.
My problem is this - each new quote gets an ID number which is saved into the 'quotes' table but when the form is automatically opened it says it can't find ID. yet when I open the second form manually it is fine.
But the ID number is not in the form (Me![ID] part), it is now in the 'quotes' table. What is the correct code for this?
My problem is this - each new quote gets an ID number which is saved into the 'quotes' table but when the form is automatically opened it says it can't find ID. yet when I open the second form manually it is fine.
Code:
DoCmd.OpenForm "FORM - Find Quote or Agreement", , , "[ID]=" & Me![ID]