Dlookup Error doing my head in

CSP12345

Board Regular
Joined
Oct 1, 2014
Messages
52
Hi all,
I suspect this ha been covered but I have tried everything and searched every were please help

Ok I have created a query "query1"
In query1 I have a field "Assest Number" "BatteryType" that is just pulling information direct from a table "3 Yearly Cost"
and in another field "BatteryCost" that I want to look up the cost of the battery from a table "BatteryTb" field "BatteryCost1"

My Expression is this BatteryCost: DLookUp("BatteryCost1","BatteryTb","Batterytype1 =" & [BatteryType])

The Error it is returning is The object doesnt contain the automation object "GP1272"
GP1272 is a battery type that is displaying in the query filed "BatteryType"


Any help please, Im good with Excel but new to Access and the cross over is doing my head in
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.

Forum statistics

Threads
1,214,827
Messages
6,121,818
Members
449,049
Latest member
cybersurfer5000

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top