Add New record using a listbox/ Added Attachment
I have a mainform where TaxID is used in a combo box to add new records. The problem is not all of my paperwork will have either a SSN or EIN on it to filter the combo.
What I would like to do is use a searchform that has a listbox w/names and TaxID -->This works as I use it to search my records.
Using a copy of this search form I would like to add a new record using TaxId
The code I am trying is
I have tried different variations of this, and can get a new form to load but the TaxId is not updated.
Can someone help me for min?
***EDIT***
I have added an attachment of s stripped down db. I am still having problems trying to understand this, maybe someone could look at help, maybe my form is set up wrong.
I have a mainform where TaxID is used in a combo box to add new records. The problem is not all of my paperwork will have either a SSN or EIN on it to filter the combo.
What I would like to do is use a searchform that has a listbox w/names and TaxID -->This works as I use it to search my records.
Using a copy of this search form I would like to add a new record using TaxId
The code I am trying is
DoCmd.OpenForm "frmPolicyEntry", , , "tblPolicy.[TaxID] = " & lstResults.Column(0), , acDialog
I have tried different variations of this, and can get a new form to load but the TaxId is not updated.
Can someone help me for min?
***EDIT***
I have added an attachment of s stripped down db. I am still having problems trying to understand this, maybe someone could look at help, maybe my form is set up wrong.
Attachments
Last edited: