473,386 Members | 1,752 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,386 software developers and data experts.

sQuery

Hello . . . new to the community and very much a Visual Basic novice.

Have built a form in MSAccess 2000/02. Form is designed to keep users from going into the Design view and creating queries. So far my coding works on first two blank form fields of the form (5 in all). Having trouble incorporating the next field, Field3.value

Below is my coding so far. Any advice is greatly appreciated.

Dim StDocName As String
Dim sQuery As String

StDocName = "frm_inspection_trackingforsearch"
If Field1.Value = "" Or IsNull(Field1.Value) Then

Else
sQuery = "RG LIKE '" & Field1.Value & "*'"
End If

If Field2.Value = "" Or IsNull(Field2.Value) Then

Else
If sQuery = "" Then
sQuery = "SER LIKE '" & Field2.Value & "*'"
Else
sQuery = sQuery & " AND SER LIKE '" & Field2.Value & "*'"

End If
End If
Jul 31 '06 #1
1 1283
let us know, what problem u r facing? what kind of error does ur program showing?

Mahesh
Aug 1 '06 #2

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

Similar topics

3
by: Ike | last post by:
Can anyone discern why the following code writes the document.write() lines literally? That is, a line like document.write('<CENTER>') should write <CENTER> but instead writes the entire ...
1
by: Colin Mc Mahon | last post by:
Hi, I am trying to re-write an old url management class I use, and am having problems using the Execute method to create vars. I think i'm missing something simple, as I have used this method...
1
by: kfrost | last post by:
I'm connecting to an exchange public folder and pulling out contacts via XML. I can use the .responseText to view the text string. The response from Exchange in this string is formatted in XML. ...
24
by: anders | last post by:
Hi! Im trying to add a A record to a domain name in MS DNS with C#, it's done from a webpage with this code: ManagementClass rr = new ManagementClass(@"root\MicrosoftDNS",...
0
by: jayohare | last post by:
Hello, I have code within my DB application to process credit cards through authorize.net. Ive been using the same code for several years without a problem. I have an order entry computer and...
4
by: MarcoEffe | last post by:
Hi all, I need a query, on a VB6 application, to create a new table with an ''AutoNumber" Field but I cannot find the correct syntax. This one doesn't work: sQuery = "CREATE TABLE sTableName...
0
by: sarveshscjp06 | last post by:
Hi! i want to check the availability of record before inserting. i want to use the stored procedure by using the JDBC connectivity with SQL Server 2000
6
by: Paul | last post by:
Hi all, I have a string which I want to break into a char array, is the following way of doing this ok: const char* test = new char; test = sQuery.c_str(); and finally:
1
by: beebee | last post by:
OK all I have a webservice utilizing API's in to an application. I want to call this service and load the returned information onto my aspx page. right now i am not getting any errors in my...
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: 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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.