mjohnson629
New member
- Local time
- Yesterday, 19:04
- Joined
- Mar 24, 2006
- Messages
- 8
I have a database that I am working on with a group, and we are having a hard time with some of our VBA code. We have set up a form that is used to update a certain field in a table. In the code we have setup the variables and they are all containing the correct information however in the SQL statement the where statement is not working.
We set it up and it should udate the field that in the row where the UserID's match.
"Where UserID = Competitor.UserID"
When it is in the table like this when we run the update statement it updates every row in the table, but when we have it like this:
"WHERE UserID.Value = Competitor.UserID.Value"
Access asks us which UserID we want to update and we have to put it in manually. Is there a way to fix this so that access will match up the UserID's and update the desired field without us having to enter the ID manually.
Thanks...
We set it up and it should udate the field that in the row where the UserID's match.
"Where UserID = Competitor.UserID"
When it is in the table like this when we run the update statement it updates every row in the table, but when we have it like this:
"WHERE UserID.Value = Competitor.UserID.Value"
Access asks us which UserID we want to update and we have to put it in manually. Is there a way to fix this so that access will match up the UserID's and update the desired field without us having to enter the ID manually.
Thanks...