D
Derek Brown
Hi All
I am using INSERT INTO to add a record to an existing table. I want to
change only one value that is the linking field to the Master table so that
I dont get message record cannot be added without a reference to the main
table. I already have the nessassary number (an AccountCode) but how do i
stick it in?
strSQL = _
"INSERT INTO Item (" & "AccountCode) Values (NewID); &
ItemQuantity, )" & _
"SELECT " & "AccountCode, ItemQuantity, & _
"FROM Item " & _
"WHERE ItemNumber=" & Me.ItemNumber
Doesn't work though.
Any Ideas?
I am using INSERT INTO to add a record to an existing table. I want to
change only one value that is the linking field to the Master table so that
I dont get message record cannot be added without a reference to the main
table. I already have the nessassary number (an AccountCode) but how do i
stick it in?
strSQL = _
"INSERT INTO Item (" & "AccountCode) Values (NewID); &
ItemQuantity, )" & _
"SELECT " & "AccountCode, ItemQuantity, & _
"FROM Item " & _
"WHERE ItemNumber=" & Me.ItemNumber
Doesn't work though.
Any Ideas?