Ofer...
I appreciate your patience; however, I'm just not getting this...I did
correct the spelling issue below...but no luck...perhaps I've not
communicated myself clearly...is your direction assuming that I have two
date fields (a starting and ending date) in my table? Because I don't, I
only have one..."Date of Incident" ....and in my query I have the "Between
[Start Date] and [End Date]" statement for returning my desired
dates...consequently each of my embedded subforms are attached to these two
queries (w/ the same "Between [Start Date] and [End Date]" statement...)...so
I'm entering Start & End Dates twice...
Not sure what I'm doing wrong...any thoughts would be appreciated...
V/R,
Steve
Ofer said:
You got a syntax error in the Forms word, you have Frm
Yours
Select * From Tbl2_Member_History Where [Start Date] >=
Forms![Frm_Both]![Start Date] and [End Date]<= Frm![Frm_Both]![End Date]
Need to be
Select * From Tbl2_Member_History Where [Start Date] >=
Forms![Frm_Both]![Start Date] and [End Date]<= Forms![Frm_Both]![End Date]
--
\\// Live Long and Prosper \\//
BS"D
:
Greetings Ofer and thank you for the reply...however, I seem to be having
some difficulty implementing your suggestion...I've added the two fields
[Start Date] &[End Date] to my main form....
Regarding the criteria to be added to my query...this is what I've added:
Select * From Tbl2_Member_History Where [Start Date] >=
Forms![Frm_Both]![Start Date] and [End Date]<= Frm![Frm_Both]![End Date]
That being said, I'm not able to tab out of the criteria field (of my date
field in the query) w/ out receiving a syntax error message...
Have I misunderstood your direction?
V/R,
Steve
:
Create two fields in the main form [Start Date] And [End Date]
In the Query add the criteria
Select * From TableName Where [Start Date] >= Forms![MainFormName]![Start
date] And [End date] <= Forms![MainFormName]![End date]
The same in the second query.
On the After update of both Date field in the main form write
If Not IsNull(Me.[Start Date]) And Not IsNull(Me.[End Date]) Then
Me.SubForm1Name.Requery
Me.SubForm2Name.Requery
End If
--
\\// Live Long and Prosper \\//
BS"D
:
Greetings...
I have two subforms embedded into my main "Metrics Form"...however, both
subforms are based on a query w/ Beginning & Ending Date parameters...both
queries are actually sorting the same data..one sorts for "completed
suicides" and the other sorts for "attempted suicides."
So, my question is this ... is there a better way to do this? One that
does not requrie the user to enter the Beginning & Ending dates
(twice)....fore each subform (query)? Hope that wasn't toooo confusing...
Thanks in advance for your help...
V/R,
Steve