Hi,
I have a main form and a sub form. My promary key is a calculated value, returned from a VBA function, which is called from the primary key fields' Default value.
Here's the problem:
If the user don't use the keyboard, the record in the main table is not created, so trying to do record operations/form operations in VBA results in 'no related post in the main table'. this when selecting or just accepting default values in the record.
I've tried to save the record, SendKeys to the primary key field, but it don't work. How can I get the new record created without using the keyboard?
Thanks in advance for any replies.
Regards
Gerhard
I have a main form and a sub form. My promary key is a calculated value, returned from a VBA function, which is called from the primary key fields' Default value.
Here's the problem:
If the user don't use the keyboard, the record in the main table is not created, so trying to do record operations/form operations in VBA results in 'no related post in the main table'. this when selecting or just accepting default values in the record.
I've tried to save the record, SendKeys to the primary key field, but it don't work. How can I get the new record created without using the keyboard?
Thanks in advance for any replies.
Regards
Gerhard