Ask a Question related to Macromedia Dynamic HTML, Design and Development.
-
Durwood Edwards #1
multiple field query - plus
I want to query an Access database through ASP. I want the query to return
records based on parameters entered by the user, unless no parameter for a
particular field is entered, in which case it would return all records where
that field exists.
Example (and I hope this is clear):
The database is a list of documents of county records, containing a document
name, a county name, a document summary, etc. I want the user to be able to
look up records either by county, or document name, or both. So the query
form will request the user to enter a parameter in the appropriate field. If
they enter no parameter, the query is to assume all records containing any
value for that field are being requested.
Some one suggest the statement below, but I get an
"Invalid use of vertical bars in expression" error.
Anyone know the correct Access syntax?
select * from records
where dName like '%' || nvl('&dName','') || '%'
and county like '%' || nvl('&county','') || '%';
Thanks for your help,
Durwood
Durwood Edwards Guest
-
Query a field with spaces in it
I'm currently trying to run an update on a field in an Access database. <CFSET LINENUM=LINENUM+1> <CFQUERY NAme="UpdateRecords" ... -
Calculated Field in Query of Query
How do you add a calculated field to a Query of Query using a function DollarFormat(datafield) as calcField -
Query one database field with 2 parameters.
I am trying to query a database field with several check boxes from a form. I though this would work but it doesn?t : Select * From table WHERE ... -
CAML Query: Multiple Query Fields Issue
I need to Create a CAML Query Dynamically with VB to a Sharepoint WebService GetListItems Method. The User Could Select 1 to X Number of IDs... -
SQL Query with Field Conditionals???
Try removing the quotes from around False? "Shannon" <scomins@unitedradio.com> wrote in message news:#WgOsZUTDHA.2092@TK2MSFTNGP10.phx.gbl......



Reply With Quote

