Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

What is the SQL query syntax?

Posted on 1998-06-25
2
Medium Priority
?
159 Views
Last Modified: 2010-05-03
What is the SQL query syntax when i want to compare a date
taken from an Access database field with a date entered in a text box?

I tried all possible ways using the "'" operator and the "&"
string but nothing seems to give me the correct result.

Can You suggest the ideal way to compare such type of variables ? Please give me some relevant examples.


0
Comment
Question by:ravicha
2 Comments
 
LVL 4

Accepted Solution

by:
tomook earned 300 total points
ID: 1464342
Try
CVDate(rs!FieldName) = CVDate(Me.ControlName)

If you want a real example, post your table, field, form, and control names.
0
 

Author Comment

by:ravicha
ID: 1464343
Thanks a lot, I must try this out.

0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses

885 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question