I have a form (Form1) and a table (tblScanned).
The form has a unbound box called Test. The table has a field called ApplicantID.
I want to scan in Applicant numbers using the form and populate the table.
My vba code is
Private Sub Test_Click()
DoCmd.RunSQL "INSERT INTO tblScanned(ApplicantID)" & _
"VALUES (FORMS!Form1!Test)"
End Sub
I want the form to add the record and then clear the value in the unbound box.
Then I want to scan in a new record and add the new record to the table and clear the value in the unbound box.
Any help would be appreciated.
Thanks.
Patrick
The form has a unbound box called Test. The table has a field called ApplicantID.
I want to scan in Applicant numbers using the form and populate the table.
My vba code is
Private Sub Test_Click()
DoCmd.RunSQL "INSERT INTO tblScanned(ApplicantID)" & _
"VALUES (FORMS!Form1!Test)"
End Sub
I want the form to add the record and then clear the value in the unbound box.
Then I want to scan in a new record and add the new record to the table and clear the value in the unbound box.
Any help would be appreciated.
Thanks.
Patrick