I have spent nearly a day and I am really not able to find my mistake..
this Forum has always the best answers so I am hoping someone can Point out what I am doing wrong!!!
it is a simple UPDATE Statement..
as you can see the Target Table and the field are from Combo boxes. also the field of the tbl_Import.
the SQL on printing gives the perfect one that i want it to be...
but the Problem is that the code does not recognise the values tbl_Import.[pnr] and tbl_Import.[Prio].
"Enter parameter" box Pops up everytime.
please tell me if anyone can see what i am doing wrong.
this Forum has always the best answers so I am hoping someone can Point out what I am doing wrong!!!
it is a simple UPDATE Statement..
Code:
strSQL = " UPDATE " & Me.Combo81 & _ " SET " & "[" & Me.Combo81 & "]" & "." & "[" & Me.Combo79 & "]" & " = tbl_Import.[" & Me.Combo83 & "]" & _ " WHERE [tbl_Import].[pnr] = " & Me.Combo81 & ".[pnr];"
the SQL on printing gives the perfect one that i want it to be...
Code:
UPDATE MLE_Table SET [MLE_Table].[NHA] = tbl_Import.[Prio] WHERE [tbl_Import].[pnr] = MLE_Table.[pnr];
"Enter parameter" box Pops up everytime.
please tell me if anyone can see what i am doing wrong.
Comment