AccessDevJunior
Programmer
hya,
i have a main form called 'frm_ID', its record source is a table (tbl_ID) with only one field 'ID Number'.
The main form has a subform called 'frm_IDSub', its record source is a table (tbl_IDSub) with a field 'ID Number' and several other fields.
the two tables have a one to many relationship.
I would like to place and unbound text box and a command button on the main form. I want the user to be able to enter the Id number in the unbound text box then click the command button.
On clicking the command button i would like the code to lookup in 'tbl_Id' to see if the ID Number exists, then if it does find that record, if not add a new record.
if anyone could help me put this code together it would be a great help
i have a main form called 'frm_ID', its record source is a table (tbl_ID) with only one field 'ID Number'.
The main form has a subform called 'frm_IDSub', its record source is a table (tbl_IDSub) with a field 'ID Number' and several other fields.
the two tables have a one to many relationship.
I would like to place and unbound text box and a command button on the main form. I want the user to be able to enter the Id number in the unbound text box then click the command button.
On clicking the command button i would like the code to lookup in 'tbl_Id' to see if the ID Number exists, then if it does find that record, if not add a new record.
if anyone could help me put this code together it would be a great help