T
Tony
Main table (ID, name)
sub table (id, assignee)
link up 2 tables by ID and id
i have created the main and sub forms, if i MANUALLY input "assignee" in
sub table, then ACCESS will create id & ID in both tables to link up
automatically.
i create the following code to auto input the assignee field, i see the auto
input"Unassigned" in the "Form Screen" and i see the new record in the table
but the record has no record id.
is it the difference of input by code and by manually? Could it be solved?
thanks a lot.
******** code ***********
Private Sub Form_BeforeInsert(Cancel As Integer)
Me.FrmOfficer!assignee = "Unassigned"
End Sub
sub table (id, assignee)
link up 2 tables by ID and id
i have created the main and sub forms, if i MANUALLY input "assignee" in
sub table, then ACCESS will create id & ID in both tables to link up
automatically.
i create the following code to auto input the assignee field, i see the auto
input"Unassigned" in the "Form Screen" and i see the new record in the table
but the record has no record id.
is it the difference of input by code and by manually? Could it be solved?
thanks a lot.
******** code ***********
Private Sub Form_BeforeInsert(Cancel As Integer)
Me.FrmOfficer!assignee = "Unassigned"
End Sub