This is what I want to do:
I have 2 tables - EXSHOLOG & logexpo
I want to get all of the records in exsholog where 2 fields match logexpo, then update those records and put an X in column showx4.
Like this:
I want to update EXSHOLOG and SET EXSHOLOG.SHOWX4 = 'X'
where exsholog.custno = logexpo.custno
And exsholog.progcd = logexpo.progcd
Here is my query, and it works in MS Access but not in SQL Server.
UPDATE EXSHOLOG, LogExpo SET EXSHOLOG.SHOWX4 = 'X'
WHERE ((exsholog.custno=logexpo.custno And exsholog.progcd=logexpo.progcd))
Can someone please tell me how to fix this.
I suck doing SQL code.
I have 2 tables - EXSHOLOG & logexpo
I want to get all of the records in exsholog where 2 fields match logexpo, then update those records and put an X in column showx4.
Like this:
I want to update EXSHOLOG and SET EXSHOLOG.SHOWX4 = 'X'
where exsholog.custno = logexpo.custno
And exsholog.progcd = logexpo.progcd
Here is my query, and it works in MS Access but not in SQL Server.
UPDATE EXSHOLOG, LogExpo SET EXSHOLOG.SHOWX4 = 'X'
WHERE ((exsholog.custno=logexpo.custno And exsholog.progcd=logexpo.progcd))
Can someone please tell me how to fix this.
I suck doing SQL code.