show all values from my database

N

news

Hello
I have a problem with show all values from my database into my html page!

Example of my database:
Namn: test.mdb
Table: tblTest
Columns: col1, col2, col3

The thing I want is to search the database for "2005-04-27" in the columns
col1 and col3 but I can only get values from col1 !!!

Here is an example of my SQL code:

******************************************'
strSQL = "SELECT * FROM tblTest WHERE Col1 = #" & CDate(strVarde) & "# & AND
(Col3 = #" & CDate(strVarde) & "#" ' ORDER BY Col1"
******************************************
Can someone please help meeeeeee..

// Kenneth
 
D

dave

use OR instead of AND
******************************************'
strSQL = "SELECT * FROM tblTest WHERE Col1 = #" & CDate(strVarde) & "# & OR
(Col3 = #" & CDate(strVarde) & "#" ' ORDER BY Col1"
******************************************
dave
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,159
Messages
2,570,879
Members
47,413
Latest member
ReeceDorri

Latest Threads

Top