B
Barry A&P
i want to update locations in both the part numbers table and serialnumbers
table with a single form and action
I have a form with two unbound combo boxes one is locationnamecombo it has
two columns location id set to 0" and location name set to 3"
the second combo is SNIDCombo with two columns serialnumberid set to 0" and
partnumberid set to 2"
the first SQL that updates the serialnumber location works as expected
(maybe because combo is bound to column 1)
DoCmd.RunSQL ("UPDATE T_SerialNumbers SET T_SerialNumbers.locationID =
forms!F_setinventory.LocationnameCombo WHERE
(((T_SerialNumbers.SerialNumberID)=forms!F_setinventory.SNIDCombo))"),
dbFailOnError
The second sql updates the Partnumber table location based on the
SNIDcombo's Column(1) in its criteria but i get an error
Undefined function in 'forms!F_setinventory.SNIDCombo.column' in expression
i also tried Me.SNIDCombo.column(1)
DoCmd.RunSQL ("UPDATE T_PartNumbers SET T_PartNumbers.homelocationID =
forms!F_setinventory.LocationnameCombo WHERE
(((T_partNumbers.partNumberID)=forms!F_setinventory.SNIDCombo.column(1)))"),
dbFailOnError
Any help would be greatly appreciated
Thanks
Barry
table with a single form and action
I have a form with two unbound combo boxes one is locationnamecombo it has
two columns location id set to 0" and location name set to 3"
the second combo is SNIDCombo with two columns serialnumberid set to 0" and
partnumberid set to 2"
the first SQL that updates the serialnumber location works as expected
(maybe because combo is bound to column 1)
DoCmd.RunSQL ("UPDATE T_SerialNumbers SET T_SerialNumbers.locationID =
forms!F_setinventory.LocationnameCombo WHERE
(((T_SerialNumbers.SerialNumberID)=forms!F_setinventory.SNIDCombo))"),
dbFailOnError
The second sql updates the Partnumber table location based on the
SNIDcombo's Column(1) in its criteria but i get an error
Undefined function in 'forms!F_setinventory.SNIDCombo.column' in expression
i also tried Me.SNIDCombo.column(1)
DoCmd.RunSQL ("UPDATE T_PartNumbers SET T_PartNumbers.homelocationID =
forms!F_setinventory.LocationnameCombo WHERE
(((T_partNumbers.partNumberID)=forms!F_setinventory.SNIDCombo.column(1)))"),
dbFailOnError
Any help would be greatly appreciated
Thanks
Barry