KevinSlater
Registered User.
- Local time
- Today, 03:02
- Joined
- Aug 5, 2005
- Messages
- 249
Hi,
I have an access form named “SCREEN-DATA-LOAD_SHEET” which has some code on the after update event behind a filed named orde num (second field from left of form) which I’d like to update /insert some data into fields in the local access table named: “DATA-LOAD_SHEET”. It gets the data from an SQL view named “dbo_View_LoadSheetV2”
The code is as below:
Private Sub OrderNum_AfterUpdate()
Let [DATA-LOAD_SHEET.Account] = [dbo_View_LoadSheetV2.CardCode]
Let [DATA-LOAD_SHEET.Shipto] = [dbo_View_LoadSheetV2.ShiptoCode]
End Sub
However when I try to use the form by selecting sales order in the drop down entry type and then entering an order number – I’m using 45768 as an example I either get an error message saying run time error 2465 - Microsoft access cant find the field '|' referred to in your expression or it just inserts the sales order number into the DATA-LOAD_SHEET table but no other information.
Any help would be great, I’ve attached a sample version of the access database with just a few records. Thanks
I have an access form named “SCREEN-DATA-LOAD_SHEET” which has some code on the after update event behind a filed named orde num (second field from left of form) which I’d like to update /insert some data into fields in the local access table named: “DATA-LOAD_SHEET”. It gets the data from an SQL view named “dbo_View_LoadSheetV2”
The code is as below:
Private Sub OrderNum_AfterUpdate()
Let [DATA-LOAD_SHEET.Account] = [dbo_View_LoadSheetV2.CardCode]
Let [DATA-LOAD_SHEET.Shipto] = [dbo_View_LoadSheetV2.ShiptoCode]
End Sub
However when I try to use the form by selecting sales order in the drop down entry type and then entering an order number – I’m using 45768 as an example I either get an error message saying run time error 2465 - Microsoft access cant find the field '|' referred to in your expression or it just inserts the sales order number into the DATA-LOAD_SHEET table but no other information.
Any help would be great, I’ve attached a sample version of the access database with just a few records. Thanks