Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Whats the separator for this query?

Status
Not open for further replies.

Zaichik123

Technical User
Sep 4, 2003
18
GB
Probably two of the easiest questions ever, but how do I combine these two queries?

UPDATE CWT_Room SET CWT_Room.cwfADB_RoomCode = CWT_Room.cwfRoomTypeTemplate;

UPDATE CWT_Room SET CWT_Room.cwfExtRevCde = CWT_Room.cwfRoomTypeTemplate;

I was thinking UPDATE CWT_Room SET CWT_Room.cwfADB_RoomCode = CWT_Room.cwfRoomTypeTemplate AND CWT_Room SET CWT_Room.cwfExtRevCde = CWT_Room.cwfRoomTypeTemplate;

but its asking me for a parameter...
 
Try
[blue][tt]
UPDATE CWT_Room
SET cwfADB_RoomCode = cwfRoomTypeTemplate,
cwfExtRevCde = cwfRoomTypeTemplate
[/tt][/blue]
 
Thanks Golom,

But its then asking me for a parameter - I've not come accross these before - how should I tackle it?
 
Usually that is the result of your having an incorrect field name. Access checks the table source(s) and discovers no field with that name and decides that it must be a user supplied parameter. Check your field names for correct spelling. Could cwfExtRevCde really be cwfExtRevCode for example?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top