J
jdeno1
Is it possible to use and update query to edit a field in a table
based on a combobox value selected on a form? The specifics of what
I'm trying to accomplish are...
I want the user to be able to make a selection from a combobox and
have it update to a table.
I only want it to update where [t.jobdata]![Job Code] = [Forms]!
[cbo_primaryJob]
does that make sense? I can write a query that displays the data in
the combbox but I can't seem to get the update query to work. It
displays null when I run it.
So the query is...
UPDATE t_jobCodeStats_MAIN SET t_jobCodeStats_MAIN.[Primary Job] =
[Forms]![frm_JobCodeStats_MAIN]![cbo_Pjob1]
WHERE (((t_jobCodeStats_MAIN.JobCode)=[Forms]![frm_JobCodeStats_MAIN]!
[cbo_jobcode1]));
Help!
Thanks,
James
based on a combobox value selected on a form? The specifics of what
I'm trying to accomplish are...
I want the user to be able to make a selection from a combobox and
have it update to a table.
I only want it to update where [t.jobdata]![Job Code] = [Forms]!
[cbo_primaryJob]
does that make sense? I can write a query that displays the data in
the combbox but I can't seem to get the update query to work. It
displays null when I run it.
So the query is...
UPDATE t_jobCodeStats_MAIN SET t_jobCodeStats_MAIN.[Primary Job] =
[Forms]![frm_JobCodeStats_MAIN]![cbo_Pjob1]
WHERE (((t_jobCodeStats_MAIN.JobCode)=[Forms]![frm_JobCodeStats_MAIN]!
[cbo_jobcode1]));
Help!
Thanks,
James