#Error

Pookiemeister

Well-known Member
Joined
Jan 6, 2012
Messages
626
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
On my form I have 5 textboxes. Each will be pulling its value from a Query based on the value of the first textbox. The error in the subject displays in the ItemDescriptiontxtbx when the form loads. Textbox names and their order below:
Textbox Names
1. Itemtxtbx
2. ItemDescriptiontxtbx
3. ManufactureNametxtbx
4. ManufacturerPartsNotxtbx
5.UOMtxtbx

QUERY FIELD NAMES (These were imported from an Excel spreadsheet)
1. Item
2. ItemDescription
3. ManufacturersName
4. ManufacturersPartNo
5. UOM

I have the following DLookup code inside the "Control Source"
VBA Code:
=DLookUp("ItemDescription","InventoryDetailsQuery","Item = " & [Itemtxtbx])

Would it possible that the issue maybe from something that is set in the property sheet for ItemDescriptiontxtbx?

I hope I provided enough information. Thank you
 
Last edited:

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
What is the data type of the field? If Item data type is text then it must be delimited. In that case, try:
VBA Code:
"Item = '" & [Itemtxtbx] & "'")
Trying to remember if DLookup allows criteria to be the name of a control. You may need to use Me.Itemtxbx
 
Upvote 0
That string (#Error) seems to be set by a macro, so without the full code that handle the form it would be difficult to make any guess...
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,180
Members
453,021
Latest member
Justyna P

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