S
Steve
Hi all-
Been reading discussions all morning here and haven't quite found what
i'm looking for for my particular situation.
In essence, right now I have a review data option in my interface that
allows users to set a certain date range and list all data for that
date range and by default it currently is sorted by sitename, however
I'd like to also be able to sort by Date/Time and Type.
My plan right now is to use a Combo Box that has all three Options in
it and when you choose one, will sort accordingly.
Here is hopefully the pertinent information someone needs to give me
some ideas and a little better direction:
----
Combo3 Row Source: SELECT slist.slist FROM slist ORDER BY slist.slist;
slist field name: slist
slist data type: text
slist display control: combo box
slist row source type: field list
slist row source: SELECT sortlist.[Site Name], sortlist.ldate,
sortlist.Type FROM sortlist ORDER BY sortlist.[Site Name],
sortlist.ldate, sortlist.Type, sortlist.[Site Name] Or sortlist.ldate
Or sortlist.Type;
sortlist field name: site name type: text
site name row source: SELECT wdata.sitename FROM wdata ORDER BY
wdata.sitename;
sortlist field name: type type: text
type row source: SELECT wdata.Type FROM wdata ORDER BY wdata.Type;
sortlist field name: ldate type: date/time
----
this was something i tried adapting from a similar posting
---
Private Sub Combo3_AfterUpdate()
If Me.Combo3.Value = "Site Name" Then
Me.Child0.RowSource = "Select * From slist Order By [sitename]
"
ElseIf Me.Combo3.Value = "Date/Time" Then
Me.Child0.RowSource = "Select * From slist Order By [ldate] "
Else
Me.Child0.RowSource = "Select * From slist Order By [type] "
End If
End Sub
-----
Child0 is the subform which has the source object as
"Query.dataReviewQ" however there is no option to do a .RowSource.
Hopefully this is enough to give me a hand, if not let me know and I
will gladly reply with information requested.
Thanks in advance,
Steve L.
Been reading discussions all morning here and haven't quite found what
i'm looking for for my particular situation.
In essence, right now I have a review data option in my interface that
allows users to set a certain date range and list all data for that
date range and by default it currently is sorted by sitename, however
I'd like to also be able to sort by Date/Time and Type.
My plan right now is to use a Combo Box that has all three Options in
it and when you choose one, will sort accordingly.
Here is hopefully the pertinent information someone needs to give me
some ideas and a little better direction:
----
Combo3 Row Source: SELECT slist.slist FROM slist ORDER BY slist.slist;
slist field name: slist
slist data type: text
slist display control: combo box
slist row source type: field list
slist row source: SELECT sortlist.[Site Name], sortlist.ldate,
sortlist.Type FROM sortlist ORDER BY sortlist.[Site Name],
sortlist.ldate, sortlist.Type, sortlist.[Site Name] Or sortlist.ldate
Or sortlist.Type;
sortlist field name: site name type: text
site name row source: SELECT wdata.sitename FROM wdata ORDER BY
wdata.sitename;
sortlist field name: type type: text
type row source: SELECT wdata.Type FROM wdata ORDER BY wdata.Type;
sortlist field name: ldate type: date/time
----
this was something i tried adapting from a similar posting
---
Private Sub Combo3_AfterUpdate()
If Me.Combo3.Value = "Site Name" Then
Me.Child0.RowSource = "Select * From slist Order By [sitename]
"
ElseIf Me.Combo3.Value = "Date/Time" Then
Me.Child0.RowSource = "Select * From slist Order By [ldate] "
Else
Me.Child0.RowSource = "Select * From slist Order By [type] "
End If
End Sub
-----
Child0 is the subform which has the source object as
"Query.dataReviewQ" however there is no option to do a .RowSource.
Hopefully this is enough to give me a hand, if not let me know and I
will gladly reply with information requested.
Thanks in advance,
Steve L.