addnew record

G

Guest

using: access 2003
what to accomplish:
double-clicking on a field (NSN) on a subform (STNDISS) will add that
record to another table (OCIE).
Problem:
the main form (person_frm) contains some data (SSN) that needs to be
added to the same table (OCIE). I don't know how to reference the field (SSN).

I am using .AddNew and .Update. I can get the code to add the record (with
NSN) but the (SSN) is blank.
 
J

John Spencer

Try referencing the control on the main form with the syntax
Assuming the control on the main form is named SSN

[Forms]!Person_Frm!SSN

Or

Me.Parent.SSN
 
G

Guest

This worked. Thank you.

John Spencer said:
Try referencing the control on the main form with the syntax
Assuming the control on the main form is named SSN

[Forms]!Person_Frm!SSN

Or

Me.Parent.SSN


Turin said:
using: access 2003
what to accomplish:
double-clicking on a field (NSN) on a subform (STNDISS) will add that
record to another table (OCIE).
Problem:
the main form (person_frm) contains some data (SSN) that needs to be
added to the same table (OCIE). I don't know how to reference the field
(SSN).

I am using .AddNew and .Update. I can get the code to add the record (with
NSN) but the (SSN) is blank.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top