Solved

What is the SQL query syntax?

Posted on 1998-06-25
2
155 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 4

Accepted Solution

by:
tomook earned 100 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

735 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