Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Open a form with a date 1

Status
Not open for further replies.

kpryan

Technical User
Aug 24, 2005
282
US
Hi,

How do I open a form by using a date.
I have a planner form which shows the month & daily dates.
I want to be able to open another form which has the same dates on it.By using the dbl click event on the planner form and that to open a form.
I have used this code;

Private sub date1_dblClick(cancel As Integer)
docmd.openform "day1a" ,,,"date1=" & me.date1
This will open the form, but will not show any data.
many thanks,,
KP
 
How are ya kpryan . . .

. . . and this:
Code:
[blue]Dim Cri As String

Cri = "[date1]=#" & Format(Me.date1,"yyyy-mm-dd") & "#"
DoCmd.openform "day1a" ,,, Cri[/blue]

Calvin.gif
See Ya! . . . . . .

Be sure to see thread181-473997
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top