Wrox Programmer Forums
|
Access VBA Discuss using VBA for Access programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 2nd, 2006, 10:10 AM
Registered User
 
Join Date: Jun 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default neeed helpppp query&vb

hi guys,i need some help,

[u]what i am trying to do :</u> its to ask the user to enter a date on the formula page, then press ok. and when the ok button is pressed, a request will be opened( to get the data and show it in a quiery).

Usually, i write the date in the criteria box for the specified field (on the request page)...

[u]but what i want</u> its to modify this date with the one the user will write when asked on the formula page.... maybe by using VB !?

if someone understood something from what i said, it would be great to help me fix this problem :)

mike

 
Old June 2nd, 2006, 12:44 PM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

Is this a data access web page, or a form and report?

If a form and report, then in the query criteria, refer to the form control, like:

[Forms]![frmYourForm].[ctlFormControl]

Or pass it in where clause of the docmd, like

sLink = "[DateField] = " & "#" & dteDate & "#"

DoCmd.OpenQuery sQueryName, , sLink

Does this help?


mmcdonal
 
Old June 2nd, 2006, 02:28 PM
Registered User
 
Join Date: Jun 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

well its a a form and report

so in the query criteria, i have to refer to the form control u said,
[Forms]![frmYourForm].[ctlFormControl]
my form name is request data, but whats frmYourForm & ctlFormControl !?

the idea is to take the date on the form, like from text1 lets say, and insert it in the query criteria.

my boss is asking me to creat something on access, which is smethin never used in my life, i usually use c++

sorry for that man & thnx alot mmcdonal

mike


 
Old June 2nd, 2006, 03:55 PM
Registered User
 
Join Date: Jun 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

ok it worked thnx a lot dudeeee :):):)






Similar Threads
Thread Thread Starter Forum Replies Last Post
Query database for List of tables & other details imsuneeta SQL Server 2000 2 January 18th, 2005 07:48 AM
Linux & KDE & C++ & QT & MYSQL & Kdevelop Munnnki Linux 0 January 2nd, 2005 05:41 PM
Append & Delete Query Teqlump Access 2 October 7th, 2004 03:40 AM
Query & sub query Adam H-W SQL Server 2000 3 March 11th, 2004 02:57 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.