I have a form that has three fields
txtAccount (Account Number)
mnuCriteria (either = < or >)
txtInvoiceNo (1 to whatever)
I want the user to be able to key in an account number in the textbox txtAccount, then select from the dropdown menu mnuCriteria either = < or > then key in an invoice number in the textbox txtInvoiceNo.
I cant get dreamweaver to accept my SQL statement as I have two variables next to eachother in the statment as follows
SELECT Account, InvoiceNo
FROM DBA_HLG01_HAJobFile
WHERE Account LIKE 'varAccount' AND InvoiceNo "varCriteria" "varInvoiceNo"
My Variables have been set up as follows
varAccount % Request("txtAccount"
varCriteria % Request("mnuCriteria"
varInvoiceNo % Request("txtInvoiceNo"
I get the message Syntax error (missing operator) in Query Expression Account LIKE '%' AND InvoiceNo [%][%]'
Im very new to this so if its obvious, forgive me. I'd really appreciate the help though!
Thanks for your time.
Kevin Marshall.
txtAccount (Account Number)
mnuCriteria (either = < or >)
txtInvoiceNo (1 to whatever)
I want the user to be able to key in an account number in the textbox txtAccount, then select from the dropdown menu mnuCriteria either = < or > then key in an invoice number in the textbox txtInvoiceNo.
I cant get dreamweaver to accept my SQL statement as I have two variables next to eachother in the statment as follows
SELECT Account, InvoiceNo
FROM DBA_HLG01_HAJobFile
WHERE Account LIKE 'varAccount' AND InvoiceNo "varCriteria" "varInvoiceNo"
My Variables have been set up as follows
varAccount % Request("txtAccount"
varCriteria % Request("mnuCriteria"
varInvoiceNo % Request("txtInvoiceNo"
I get the message Syntax error (missing operator) in Query Expression Account LIKE '%' AND InvoiceNo [%][%]'
Im very new to this so if its obvious, forgive me. I'd really appreciate the help though!
Thanks for your time.
Kevin Marshall.