debsamguru
Member
- Local time
- Today, 16:26
- Joined
- Oct 24, 2010
- Messages
- 82
Yes! That's how you do it!
DoCmd.OpenForm "NewOrderF", , , , acFormAdd
Forms!NewOrderF!CustomerCombo = Me.CustomerID
I didn't realise that the code that comes after the OpenForm command relates to the newly opened form. In general programming, the command to do something would then do that something and be taken away from that processing to the next form's code. But here it doesn't.
DoCmd.OpenForm "NewOrderF", , , , acFormAdd
Forms!NewOrderF!CustomerCombo = Me.CustomerID
I didn't realise that the code that comes after the OpenForm command relates to the newly opened form. In general programming, the command to do something would then do that something and be taken away from that processing to the next form's code. But here it doesn't.