thedude1971
Registered User.
- Local time
- Today, 07:33
- Joined
- Jun 16, 2011
- Messages
- 10
Hi there,
I'm running Access'2010. I have a table with two fields thats stores find/replace data in it. They go to a form select what needs changing and then the form runs the query.
So I need to update 40 fields and I have a update query. My problem is it only completes the first field it sees and seems to ignore the other 39. Some of those fields are blank and I'm wondering if thats the reason.
OR do I have to use SQL instead? If I have to use SQL code, can someone help me with that? As I have no experience of SQL.
With just two fields as an example, the SQL code looks like this:-
UPDATE Info, [Policy rename] SET Info.[Document ref1] = [Policy rename]![Policy to], Info.[Document ref2] = [Policy rename]![Policy to]
WHERE (((Info.[Document ref1])=[Policy rename]![Policy name]) AND ((Info.[Document ref2])=[Policy rename]![Policy name]));
I have also attached a picture of the query in normal view mode too.
Thanks very much.
I'm running Access'2010. I have a table with two fields thats stores find/replace data in it. They go to a form select what needs changing and then the form runs the query.
So I need to update 40 fields and I have a update query. My problem is it only completes the first field it sees and seems to ignore the other 39. Some of those fields are blank and I'm wondering if thats the reason.
OR do I have to use SQL instead? If I have to use SQL code, can someone help me with that? As I have no experience of SQL.
With just two fields as an example, the SQL code looks like this:-
UPDATE Info, [Policy rename] SET Info.[Document ref1] = [Policy rename]![Policy to], Info.[Document ref2] = [Policy rename]![Policy to]
WHERE (((Info.[Document ref1])=[Policy rename]![Policy name]) AND ((Info.[Document ref2])=[Policy rename]![Policy name]));
I have also attached a picture of the query in normal view mode too.
Thanks very much.