M
maximus
Hi!
I'm having a problem with inserting string value with
single quotation mark form Access form to SQL 2000 table.
My code looks like this:
Dim IDBox as String
Dim WhereStr as String
IDBox=[Forms]![Orders]![OrdersDetail].[Form]!
[ProductDesc].Value
WhereStr = "ProductDesc=" + "'" + IDBox + "'"
DoCmd.OpenForm "OrdersProdDescAutoFill",acNormal, ,WhereStr
When IDBox='Don't sit while you stand!' , I'm getting
error message: "There was a problem accessing a property
or method of OLE object."
Please advise how can I include quotation mark in WhereStr
Thank you
I'm having a problem with inserting string value with
single quotation mark form Access form to SQL 2000 table.
My code looks like this:
Dim IDBox as String
Dim WhereStr as String
IDBox=[Forms]![Orders]![OrdersDetail].[Form]!
[ProductDesc].Value
WhereStr = "ProductDesc=" + "'" + IDBox + "'"
DoCmd.OpenForm "OrdersProdDescAutoFill",acNormal, ,WhereStr
When IDBox='Don't sit while you stand!' , I'm getting
error message: "There was a problem accessing a property
or method of OLE object."
Please advise how can I include quotation mark in WhereStr
Thank you