G
Guest
I have a 9 table hierarchy database, I am wanting to create a search form
with a Combo Box to search for a particular record (as put in the Text Box)
and then display the requested record in a different form.
I created the search form with a Text Box with a command button. On the
properties menu of the command button, under the Event Tab, I added the
following code to the On Click event:
Private Sub Command19_Click()
DoCMD.OpenForm fmSearch, acNORMAL
WHERECONDITION=â€[taPROPERTY.CLT]=†& me.TextBox1
End Sub
taPROPERTY is the ‘top’ table in the database and CLT is the primary key
which connects the remaining tables.
This does not work, I am sure my coding is not correct as I’m not that
confident in my ability to properly code this.
with a Combo Box to search for a particular record (as put in the Text Box)
and then display the requested record in a different form.
I created the search form with a Text Box with a command button. On the
properties menu of the command button, under the Event Tab, I added the
following code to the On Click event:
Private Sub Command19_Click()
DoCMD.OpenForm fmSearch, acNORMAL
WHERECONDITION=â€[taPROPERTY.CLT]=†& me.TextBox1
End Sub
taPROPERTY is the ‘top’ table in the database and CLT is the primary key
which connects the remaining tables.
This does not work, I am sure my coding is not correct as I’m not that
confident in my ability to properly code this.