Hi Riri,
I m trying to get the job_no from the field of the form and put
the title of that job in a combo box.
Is the combo box on the same form? If so, I'm really not understanding why
you want to do this...
But this code just gives me only 1 record.
That's probably to be expected. The WHERE clause of the SQL statement
includes a criteria for a specific job number.
I put inside the combo box the select statement is that right?
I don't know....because I'm still trying to figure out what you are trying
to do. The first question is are you trying to use a combo box to find a
record, or are you trying to use a combo box to add/edit existing data? If
you are trying to use a combo box to find an existing record (ie. this
control does not change any data), then try out my tutorial here:
Combo box to find a record
http://www.access.qbuilt.com/html/find_a_record.html
If you are trying to use the combo box to add/edit data, then please provide
the names and data types of the fields for each table (the applicable
fields), the name of each table involved, the names of any queries that are
involved and their SQL statements, the name(s) of the form(s) involved, and
the names and types of controls on the forms that are involved. Also provide
some sample data for each of the involved fields in the tables. Finally,
provide an example of what data you want displayed in the combo box.
Tom
http://www.access.qbuilt.com/html/expert_contributors.html
__________________________________________
:
Hello Tom,
I m trying to get the job_no from the field of the form and put the
title of that job in a combo box. But this code just gives me only 1
record. It does seem that select does not work. Any ideas? I put inside
the combo box the select statement is that right?
Thanks in advance
Riri