Re: Handle double quote in VB for MS Access
From: William \(Bill\) Vaughn (billvaRemoveThis_at_nwlink.com)
Date: 07/14/04
- Next message: Serge Myrand: "Re: Accessing field by name"
- Previous message: William \(Bill\) Vaughn: "Re: ADO Error 430 (automation) on some machines"
- In reply to: barani: "Handle double quote in VB for MS Access"
- Next in thread: Val Mazur: "Re: Handle double quote in VB for MS Access"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 14 Jul 2004 11:34:51 -0700
Build a Command object with parameters and let ADO figure out the framing
for you. It works every time.
--
____________________________________
William (Bill) Vaughn
Author, Mentor, Consultant
Microsoft MVP
www.betav.com
Please reply only to the newsgroup so that others can benefit.
This posting is provided "AS IS" with no warranties, and confers no rights.
__________________________________
"barani" <barani_man@hotmail.com> wrote in message
news:eWUKh7VaEHA.644@tk2msftngp13.phx.gbl...
> Hi,
>
> I have an application with VB as front end and MS Access as back end.
>
> For querying data, I am using ADO Connection object.
>
> I have a table with user name and password and some other fields in it.
>
> If I use the following query in VB, on execution of
ConnectionObject.Execute
> ("...."), I am getting the following error.
> Query
> -------
> SELECT * FROM UserDomainProfile WHERE UCase(UserID) = 'BARANI' AND
Password
> = '3"" '
>
> Error
> -------
> Syntax error in string in query expression 'UCase(UserID) = 'BARANI' AND
> Password = '3"" '
>
> But, if I execute the same query in SQL View of MS Access, I didn't get
the
> above error and I am getting the output.
> Help me to solve the above problem
>
> ===>Barani
>
>
- Next message: Serge Myrand: "Re: Accessing field by name"
- Previous message: William \(Bill\) Vaughn: "Re: ADO Error 430 (automation) on some machines"
- In reply to: barani: "Handle double quote in VB for MS Access"
- Next in thread: Val Mazur: "Re: Handle double quote in VB for MS Access"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|