I am trying to create a cascading entry in a form but i am getting data type mismatch in the criteria expression.
I have Table DeviceManufacturer_Table that has a ManufacturerName Column and a Helpfiles Hyperlink Column. I then have a table DeviceProductName_Table that has a lookup column for the device Manufacturer, i then want the next column to auto fill with the help files hyperlink. I Have created the form from the DeviceProductName_Table and I Have tried the following but cannot get it to work-
Helpfiles = DLookup("HelpFiles","DeviceManufacturer_Table","Manufacturer =" & Manufacturer)
I thought it may be that the the lookup field for the manufacturer in the DeviceProductName_Table auto sets to number and the Manufacturer field in DeviceManufacturer_Table is short text but i have tried deleting the relationship and setting the data type to short text but i still get the same error?
制造商很可能是字符串,因此:
Helpfiles = DLookup("HelpFiles","DeviceManufacturer_Table","Manufacturer ='" & Manufacturer & "'")
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.