G
Guest
I have One Main Form named "Leave Record" on which there are 3 embaded Sub
Forms developed from 3 different querys. I have a Combo Box "TimeBracket" on
Main Form from which user
can select Different Values of Time Bracket. Basing on that selected value i
want to Changed the RecordSource of all sub forms or to Apply Filters
on all sub forms. I just write the coding for one subform named "Out Pass"
but could not Get thing done. It some time give msg of "Form not Found" or
"the Field
Referred in expression is not found". I used following Code.
The Code is
Forms![Leave Record].[Out Pass].Form!Property!RecordSource = "SELECT *
FROM [Out Pass Query] " & "WHERE [From - Date] > " & " '" &
Me.TimeBraket.Value & "' "
I also Tried to use
Forms![Leave Record].[Out Pass].RecordSource = "SELECT * FROM [Out Pass
Query] " & "WHERE [From - Date] > " & " '" & Me.TimeBraket.Value & "' "
Where
Out Pass Query" is a Valid Query Name
TimeBracket has Numeric Values
Coding is done on "After Update" event of TimeBracket
Forms developed from 3 different querys. I have a Combo Box "TimeBracket" on
Main Form from which user
can select Different Values of Time Bracket. Basing on that selected value i
want to Changed the RecordSource of all sub forms or to Apply Filters
on all sub forms. I just write the coding for one subform named "Out Pass"
but could not Get thing done. It some time give msg of "Form not Found" or
"the Field
Referred in expression is not found". I used following Code.
The Code is
Forms![Leave Record].[Out Pass].Form!Property!RecordSource = "SELECT *
FROM [Out Pass Query] " & "WHERE [From - Date] > " & " '" &
Me.TimeBraket.Value & "' "
I also Tried to use
Forms![Leave Record].[Out Pass].RecordSource = "SELECT * FROM [Out Pass
Query] " & "WHERE [From - Date] > " & " '" & Me.TimeBraket.Value & "' "
Where
Out Pass Query" is a Valid Query Name
TimeBracket has Numeric Values
Coding is done on "After Update" event of TimeBracket