murray83
Games Collector
- Local time
- Today, 02:25
- Joined
- Mar 31, 2017
- Messages
- 870
i have the following code determining the value of the customer in one text box
i then would like this to be copied to the table filed customer ( at present its not as its unbound i believe )
i have thought about adding another text box which just equals the value of customer and search by this but that didn't work, maybe due to the code or that the item is unbound
have come across this following code but didn't add anything to the table, some input and pointers greatly appreciated
i have modified it so it has the correct name for the customer and table to open
Cheers
Code:
=IIf([SKUType]="GM",Mid([OrderNumber],11,4),IIf([SKUType]="BWS",Mid([OrderNumber],2,3),""))
i then would like this to be copied to the table filed customer ( at present its not as its unbound i believe )
i have thought about adding another text box which just equals the value of customer and search by this but that didn't work, maybe due to the code or that the item is unbound
have come across this following code but didn't add anything to the table, some input and pointers greatly appreciated
Code:
Private Sub Command48_Click()
Dim RS As DAO.Recordset
Set RS = CurrentDb.OpenRecordset("DeAllocation_Data", dbOpenDynaset)
with RS
.AddNew
!Customer = Me![Customer]
.Update
RS.Close
Set RS = Nothing
End Sub
i have modified it so it has the correct name for the customer and table to open
Cheers