A
AkAlan via AccessMonster.com
I'm trying to create an update query but can't seem to get the syntax correct.
I have two tables, I'll define them and keep things simple for the sake of
the post:
1st table is tblEquipment
Equipment ID (pk)
EquipmentDescription
2nd table is tblMeters
MeterID (pk)
EquipmentID (fk)
MeterType
MeterDescription
I want to update tblMeters.MeterDescription = tblEquipment.
EquipmentDecsription Where tblMeters.MeterType = "Hours Meter"
What I have so far is this
UPDATE dbo.Meters
SET MeterDescription = dbo.Equipment.Description
WHERE (dbo.Meters.MeterDescription = [Hour Meter])
I know there should be a select statement or join here I'm just at a loss.
Thanks for any help
I have two tables, I'll define them and keep things simple for the sake of
the post:
1st table is tblEquipment
Equipment ID (pk)
EquipmentDescription
2nd table is tblMeters
MeterID (pk)
EquipmentID (fk)
MeterType
MeterDescription
I want to update tblMeters.MeterDescription = tblEquipment.
EquipmentDecsription Where tblMeters.MeterType = "Hours Meter"
What I have so far is this
UPDATE dbo.Meters
SET MeterDescription = dbo.Equipment.Description
WHERE (dbo.Meters.MeterDescription = [Hour Meter])
I know there should be a select statement or join here I'm just at a loss.
Thanks for any help