BofRossClan
Technical User
I am populating my "Invoice event" table from my master "Accounts" table. Everything works great EXCEPT for the boolean field [Transfer]. Dlookup looks up the field, but will not set the form field to that value.
This is my code. Should I do something different with the boolean field?
This is my code. Should I do something different with the boolean field?
Code:
Dim intCode As Integer
Dim strName As String
Dim strAccount As Variant
Dim booTransfer As Boolean
intCode = Me![cmbBilltoName]
strName = DLookup("[BillToName]", "Accounts", "[Counter] = " & intCode)
strAccount = DLookup("[Account]", "Accounts", "[Counter] = " & intCode)
booTransfer = DLookup("[Transfer]", "Accounts", "[Counter] = " & intCode)
Me![Building] = Me![cmbBuilding]
Me![BillToName] = strName
Me![ContactPerson] = strName
Me![Account] = strAccount
Me![Transfer] = booTransfer