G
Guest
I have a main form frmPolicyEntry where new records are added using a
combobox with TaxID. My problem is not all of our paperwork will have SSN or
EIN so the user would need to take time to find it.
I currently have a search form where the user can search for existing
records, and was wanting to use a copy of the search form to find the name,
click the record in the listbox and carry the TaxID value over thereby
creaeting a new record. This sounds awful easy, but I seem to be (well I am
no doubt) screwing things up.
My code on the afterupdate() of search form:
DoCmd.OpenForm "frmPolicyEntry", , , "tblPolicy.[TaxID] = " &
lstResults.Column(0), , acDialog, Me!lstResults.Column(0)
DoCmd.Close
My beforeupdate() frmPolicyEntry:
If IsNull(Me.tblPolicy_TaxID) Then
Me.tblPolicy_TaxID = Forms!frmFilterExample5!lstResults.Column(0)
End If
I would appreciate any help or assitance anyone may offer. I have searched
several forums but havent been able to find this instance.
Thanks
g28dman
combobox with TaxID. My problem is not all of our paperwork will have SSN or
EIN so the user would need to take time to find it.
I currently have a search form where the user can search for existing
records, and was wanting to use a copy of the search form to find the name,
click the record in the listbox and carry the TaxID value over thereby
creaeting a new record. This sounds awful easy, but I seem to be (well I am
no doubt) screwing things up.
My code on the afterupdate() of search form:
DoCmd.OpenForm "frmPolicyEntry", , , "tblPolicy.[TaxID] = " &
lstResults.Column(0), , acDialog, Me!lstResults.Column(0)
DoCmd.Close
My beforeupdate() frmPolicyEntry:
If IsNull(Me.tblPolicy_TaxID) Then
Me.tblPolicy_TaxID = Forms!frmFilterExample5!lstResults.Column(0)
End If
I would appreciate any help or assitance anyone may offer. I have searched
several forums but havent been able to find this instance.
Thanks
g28dman