G
Guest
I am trying to use three combo boxes to enter three pieces of information
needed to make a query. The query (SQL language tested and ok) returns a
single record from the table "tblTimeCardList", which is the underlying
control for the form.
Ultimate goal is to use the query to set the form to the unique record
corresponding to the data in three combo boxes.
I read and tried follow advice (RunSQL question) from Trydrannoy (7/28/2005
2:19PM PST) to Judy, regards using a combo box to run a "select" query from
the form "frmTimeInput".
I put the SQL string into an "on click" event in the combo box. Code approx:
Private Sub cmdFindTimeSheet_click ()
dim strSQL as string
strSQL = " ... the sql string exactly as tested ..."
mycombobox.rowsource = strsql
mycombobox.requery
end sub
The combo box returns a blank.
Two questions:
1) am I doing something wrong?
2) is there better way?
regards,
slowuptake
needed to make a query. The query (SQL language tested and ok) returns a
single record from the table "tblTimeCardList", which is the underlying
control for the form.
Ultimate goal is to use the query to set the form to the unique record
corresponding to the data in three combo boxes.
I read and tried follow advice (RunSQL question) from Trydrannoy (7/28/2005
2:19PM PST) to Judy, regards using a combo box to run a "select" query from
the form "frmTimeInput".
I put the SQL string into an "on click" event in the combo box. Code approx:
Private Sub cmdFindTimeSheet_click ()
dim strSQL as string
strSQL = " ... the sql string exactly as tested ..."
mycombobox.rowsource = strsql
mycombobox.requery
end sub
The combo box returns a blank.
Two questions:
1) am I doing something wrong?
2) is there better way?
regards,
slowuptake