473,387 Members | 1,942 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

ASP Search Issue: Search MS Access record (project) using ASP

Hi All,

I am working on a search feature, let's say if you type in the network "Cisco", it will search and display all of the projects under Network "Cisco" for me even the project is already closed. The search works fine however; I want to extend the SELECT statement where it will ONLY display the project IF the Network=Cisco and CompleteDate="NULL" means there is nothing in the field (another word is the project still opened - blank field).

UserInput.html

<TR>
<TH ALIGN=LEFT> <FONT FACE="HELVETICA,HELV,ARIAL" SIZE=3>Project Search: </FONT></TH>
<TD><INPUT CLASS="bluebox" NAME="Network" TYPE="TYPE" SIZE="25" ID="Network"></TD>
</TR>

<TR>
<TD ALIGN="CENTER" COLSPAN=2> <INPUT CLASS="Table_Blue" TYPE="submit" NAME="Submit" VALUE="SEARCH PROJECT"></TD>
</TR>

DisplayProject.asp

Dim strNetwork
Dim strCompleteDate

strNetwork= trim(Request.Form("Network"))

Conn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("PTSystem.mdb")

strSQL = "Select * FROM TableProjects WHERE Network='" & strNetwork & "' AND CompleteDate='""'"

RS.Open strSQL, Conn

Can someone please take a look at the statement above to see if you have any comments. Thanks in advance for your help.
Jan 20 '08 #1
1 1701
Please ignore. It works fine for me now. I have to use CompleteDate IS NULL.

Thanks.
Jan 21 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: olafmol | last post by:
Hello, i am wondering if there is a simple way to insert a new record into an MS Access db and read out the newly created auto-ID field. Using ASP this was rather simple, but in ASP.NET (VB) it...
0
by: Megan | last post by:
Hi- I have a question about the Microsoft Access Record-Locking Information Icon. Whenever I, or my friends, open my MS Access database, the Microsoft Access Record-Locking Information Icon...
2
by: mr_mach7 | last post by:
I have a situation in which I want to dynamically build a SQL statement based upon criteria. The statement would contain different fields depending upon the criteria. I created a Stored Procedure...
3
by: blue_nirvana | last post by:
How do you access a form or code from another project in the same solution? I have a solution that has several projects and I want to be able to load a form or call code from say Project2 from...
3
by: gabry.morelli | last post by:
Hi everybody, I wanted to start an application using the MS Access 2003 Project, but as I create an .adp file it asks me to connect to a SQL Server. But I needed to create the dabase directly...
27
by: SQL Learner | last post by:
Hi all, I have an Access db with two large tables - 3,100,000 (tblA) and 7,000 (tblB) records. I created a select query using Inner Join by partial matching two fields (X from tblA and Y from...
2
by: Andy | last post by:
Hi guys I having a problem creating a report in Access 2003 project talking to a SQL database through and ODBC connect. After hours of trying things from Access Help, MSDN and Google I still...
1
by: JCCDEVEL | last post by:
Hi All, I am working on a legacy MS Access Data Project. I have a form that displays results from a view. The user would like to be able to occasionally filter the results by a record value. ...
1
by: colsoft | last post by:
Please I want to know i how i can search for a specific record in a report and print that record without using the arrows at the bottom. Like show a dialog or use an input box to search through the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.