0
Participant
,
/t5/dreamweaver-discussions/syntax-error-in-query-expression/td-p/610245
Jan 29, 2007
Jan 29, 2007
Copy link to clipboard
Copied
I am receiving the following error message:
Microsoft][ODBC Microsoft Access Driver] Syntax error (missing operator) in query expression 'customerid_cus='.
for the following code:
If IsEmpty(Request.Form("company_cus")) Then
rs_company.Source = "SELECT customerid_cus, company_cus FROM customers_cus WHERE customerid_cus= "& Request.QueryString("customerid") &" "
Else
rs_company.Source = "SELECT customerid_cus, company_cus FROM customers_cus WHERE company_cus = '"& Request.Form("company_cus") &"' "
End If
What could the problem be?
Microsoft][ODBC Microsoft Access Driver] Syntax error (missing operator) in query expression 'customerid_cus='.
for the following code:
If IsEmpty(Request.Form("company_cus")) Then
rs_company.Source = "SELECT customerid_cus, company_cus FROM customers_cus WHERE customerid_cus= "& Request.QueryString("customerid") &" "
Else
rs_company.Source = "SELECT customerid_cus, company_cus FROM customers_cus WHERE company_cus = '"& Request.Form("company_cus") &"' "
End If
What could the problem be?
TOPICS
Server side applications
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
1 Correct answer
LEGEND
,
Jan 30, 2007
Jan 30, 2007
Are you sure that you are passing the querystring customerid
when the form
company_cus is empty.
--
Paul Whitham
Certified Dreamweaver MX2004 Professional
Adobe Community Expert - Dreamweaver
Valleybiz Internet Design
www.valleybiz.net
"aonefun" <webforumsuser@macromedia.com> wrote in message
news:epmf3n$f3u$1@forums.macromedia.com...
>I am receiving the following error message:
>
> Microsoft][ODBC Microsoft Access Driver] Syntax error (missing operator)
> in
> query expression 'customeri...
company_cus is empty.
--
Paul Whitham
Certified Dreamweaver MX2004 Professional
Adobe Community Expert - Dreamweaver
Valleybiz Internet Design
www.valleybiz.net
"aonefun" <webforumsuser@macromedia.com> wrote in message
news:epmf3n$f3u$1@forums.macromedia.com...
>I am receiving the following error message:
>
> Microsoft][ODBC Microsoft Access Driver] Syntax error (missing operator)
> in
> query expression 'customeri...
LEGEND
,
LATEST
/t5/dreamweaver-discussions/syntax-error-in-query-expression/m-p/610246#M104999
Jan 30, 2007
Jan 30, 2007
Copy link to clipboard
Copied
Are you sure that you are passing the querystring customerid
when the form
company_cus is empty.
--
Paul Whitham
Certified Dreamweaver MX2004 Professional
Adobe Community Expert - Dreamweaver
Valleybiz Internet Design
www.valleybiz.net
"aonefun" <webforumsuser@macromedia.com> wrote in message
news:epmf3n$f3u$1@forums.macromedia.com...
>I am receiving the following error message:
>
> Microsoft][ODBC Microsoft Access Driver] Syntax error (missing operator)
> in
> query expression 'customerid_cus='.
>
> for the following code:
>
> If IsEmpty(Request.Form("company_cus")) Then
>
> rs_company.Source = "SELECT customerid_cus, company_cus FROM
> customers_cus
> WHERE customerid_cus= "& Request.QueryString("customerid") &" "
>
> Else
>
> rs_company.Source = "SELECT customerid_cus, company_cus FROM
> customers_cus
> WHERE company_cus = '"& Request.Form("company_cus") &"' "
>
> End If
>
> What could the problem be?
>
company_cus is empty.
--
Paul Whitham
Certified Dreamweaver MX2004 Professional
Adobe Community Expert - Dreamweaver
Valleybiz Internet Design
www.valleybiz.net
"aonefun" <webforumsuser@macromedia.com> wrote in message
news:epmf3n$f3u$1@forums.macromedia.com...
>I am receiving the following error message:
>
> Microsoft][ODBC Microsoft Access Driver] Syntax error (missing operator)
> in
> query expression 'customerid_cus='.
>
> for the following code:
>
> If IsEmpty(Request.Form("company_cus")) Then
>
> rs_company.Source = "SELECT customerid_cus, company_cus FROM
> customers_cus
> WHERE customerid_cus= "& Request.QueryString("customerid") &" "
>
> Else
>
> rs_company.Source = "SELECT customerid_cus, company_cus FROM
> customers_cus
> WHERE company_cus = '"& Request.Form("company_cus") &"' "
>
> End If
>
> What could the problem be?
>
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

