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

access97: input box and pass-through query

hi

i'm trying to create an input box that will ask the users for the date
(LW_Date)and then, open up the pass-through query with the specific
date results from the input box. i typed in the date but it would not
filter for the date. does anyone have advice on what i could do?

thanks in advance- jung
Private Sub btnLiveWireDate_DblClick(Cancel As Integer)

Dim strInput As String
Dim strMsg As String
Dim strmydate As String
Dim mysql As String
strMsg = "Please type in the date."
strInput = InputBox(Prompt:=strMsg, Title:="Date Info",
XPos:=2000, YPos:=2000)
strmydate = strInput & "'LW_Date'"
DoCmd.OpenQuery "qry_LiveWire" ', acViewNormal

mysql = "SELECT CONVERT(char(10), dbo.livewire.time_stamp, 101) AS
LW_Date, dbo.livewire.time_stamp AS LW_TimeStamp,
dbo.livewire.credit_account_number AS LW_DDA, CAST(dbo.livewire.amount
AS money) AS LW_Amount, dbo.livewire.sequence_number AS
LW_Sequence_Nbr, dbo.livewire.fed_reference_number AS LW_FedRef,
dbo.livewire.source_bank_name AS LW_Source_Bank,
dbo.livewire.wire_text AS LW_WireText, dbo.SECURITY_USERS.DESCRIPTION
AS LW_Claimer, dbo.livewire.claim_dt AS LW_Claim_Dt FROM dbo.livewire
LEFT OUTER JOIN dbo.SECURITY_USERS ON dbo.livewire.claim_user_name =
dbo.SECURITY_USERS.NAME WHERE (CONVERT(char(10),
dbo.livewire.time_stamp, 101) = " ") ORDER BY dbo.livewire.time_stamp
DESC"

End Sub
Nov 12 '05 #1
0 3490

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Internet Arrow Limited | last post by:
Hi, I have an access application that uses the code: > Me!txtCreationDate = Format(Date, "Long Date") & " " & Format(Time, "hh:mm:ss") This works fine under access 2000 and access97 on...
5
by: Chris Dugan | last post by:
Hi, has anybody come across a solution to running an Access97 database on Windows XP. The situation I have is an Access 97 database that runs perfectly from Win95/98 clients running Access97, the...
2
by: John | last post by:
I am using the INPUT statement in VBA to read files off of CDROMs and DVDs. Normally everything works fine. However, sometimes portions of a file are unreadable, and this will lockup the Access...
7
by: JMCN | last post by:
hello i'm trying to parse out some data from the below format. first of all, i import the text file into access97 table and the try to parse out.i have a code written but when i run it, it does...
0
by: Bob Hynes | last post by:
Hi All, In one of my Access97 db applications I created a report which I output to a RichTextFormat file attach it to an Email and send it out, that has worked just fine for a couple of years now....
1
by: George | last post by:
I have an application in Access97 which operates very normal on pc's with Win98 S.E. as an operating system.When I install the same application on a PC wich runs Windows 2000 Server (and...
10
by: lesperancer | last post by:
you start with a small application in access97, then you have more modules and more... and you reach the point where tables like 'item' and 'employee' reach the limit and you know there's more...
1
by: IamKJVonly | last post by:
I have office 97 which includes access97 and have built many access97 databases and use VB4 as the front end. I have just gotten a new computer which has 1 gig of memory on it and when I try to...
1
by: lesperancer | last post by:
currently using access97 to link to sql7 tables sql7 is running on NT4 and terminal server 2000 in the process of upgrading hardware and software to latest stable versions citrix - windows 2003...
2
by: Roger | last post by:
I've got two tables in sql2005 which have an 'ntext' field when I linked the first table in access97 last week using an odbc data source the access-field type was 'memo' when I link the 2nd...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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?
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
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.