I'm taking two fields to make a primary key. The first part of the field will be the same for every record.
I.E. BSP
The second part of the field is the part that is different.
I.E. 1, 2, 3, 4, or 5.
In the event the first part of the field has to be changed to, let say, DSP I would like all of the records that have BSP as the beginning part of it's ID to be changed to DSP.
To illustrate:
BSP-1 Change to DSP-1
BSP-2 Change to DSP-2
BSP-3 Chagne to DSP-3
BSP-4 Change to DSP-4
When I view the main table BSP has changed for all records to DSP.
I'm using
DoCmd.RunSQL "Update [tbEquipment] Set [tbEquipment].EquipmentID = '" & Me.Site & "' Where [tbEquipment].AreaID = '" & Me.Area & "'"
This code only updates the current record and as you can see there is no concatenation of any kind. When I try to concatenate '" & Me.SiteID & "' & " - " & '" & Me.TagNumber & "' I get a type mismatch.
Thanks in Advance for any type of assistance.
I.E. BSP
The second part of the field is the part that is different.
I.E. 1, 2, 3, 4, or 5.
In the event the first part of the field has to be changed to, let say, DSP I would like all of the records that have BSP as the beginning part of it's ID to be changed to DSP.
To illustrate:
BSP-1 Change to DSP-1
BSP-2 Change to DSP-2
BSP-3 Chagne to DSP-3
BSP-4 Change to DSP-4
When I view the main table BSP has changed for all records to DSP.
I'm using
DoCmd.RunSQL "Update [tbEquipment] Set [tbEquipment].EquipmentID = '" & Me.Site & "' Where [tbEquipment].AreaID = '" & Me.Area & "'"
This code only updates the current record and as you can see there is no concatenation of any kind. When I try to concatenate '" & Me.SiteID & "' & " - " & '" & Me.TagNumber & "' I get a type mismatch.
Thanks in Advance for any type of assistance.