ANY Solution........

Shafique

Board Regular
Joined
Nov 23, 2018
Messages
119
hello Everyone

i am working on an INVENTORY database. where i identified some Item Sizes with ' and " and /
but when i run the query some records did not proceed.


where the problem
 

Attachments

  • ERROR.jpg
    ERROR.jpg
    74.9 KB · Views: 17

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
If you are going to have single/double quotes in data, then you need to allow for that.
I *think you need to enclose with triple " (It might well be 4 ")

Experiment.
 
Upvote 0
If you are going to have single/double quotes in data, then you need to allow for that.
I *think you need to enclose with triple " (It might well be 4 ")

Experiment
like that.
PRICE :Dlookup("PRICE","OUTENTRY",""[INAME]='"&[MANKERAPOs].[INAME]&"' AND ...........................[ISIZE]&"'"")
 
Upvote 0
Don't know?, does it work?
You can also use CHR(34) to enclose the field.
 
Upvote 0
You concatenate Chr(34) which is actually a ", but that does not interfere with any " in the variable/field
 
Upvote 0
PRICE: DLookUp("PRICE","OUTENTRY","[INAME] ='" & [MANKERAPOs].[INAME] & "' AND [ITYPE]='" & [MANKERAPOs].[ITYPE] & "' AND [ISIZE] ='" & [MANKERAPOs].[ISIZE] & "'")
i tried it with Chr(34), and Double Quotes but not working
Actually i want the PRICE value from OUTENRTY table of previous Purchased same Item that ordered in MANKERAPOs table where match the INAME, ITYPE and ISIZE criteria
but in ISIZE i have some data with Quotation marks that doesn't match it with Chr(34) and without it procced with syntax error in string.
ANY ANY ANY Solution please.
 
Upvote 0
Start of small, and take it step by step.
Get it working only with lSize, then add the rest
AGAIN!! I believe I have mentioned this to you in the past? :(
I tend to put the criteria into a string variable for domain functions if not a single simple criteria.
Then I can debug.print them to see if I have the syntax correct.
Then when correct, I can use that in the function.
Plus, if you cannot see the error, you can copy and paste here or eslewhere, so someone can point out the error.?
 
Upvote 0
Use Replace() in both Isize fields to get rid of any internal quotes.
 
Upvote 0

Forum statistics

Threads
1,216,750
Messages
6,132,502
Members
449,730
Latest member
SeanHT

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