I have a subform based on a lookup query.
The user enters a part number and it looks up the additional information.
If the user enters a part number that has no matching records is there a way I can automatically have this number inserted into the "newparts" table??
I have tried If Isnull Me.partno Then DoCmd.RunSQL Insert(tblnewparts), [partno]
This doesn't work and I really need to tie the new part to the main form record - Xfile+Issue.
Can any one help with this??
Cheers
Dave
The user enters a part number and it looks up the additional information.
If the user enters a part number that has no matching records is there a way I can automatically have this number inserted into the "newparts" table??
I have tried If Isnull Me.partno Then DoCmd.RunSQL Insert(tblnewparts), [partno]
This doesn't work and I really need to tie the new part to the main form record - Xfile+Issue.
Can any one help with this??
Cheers
Dave