M
Mr. B
I'm having difficulties in Filtering an OleDbDataAdaptor... Currently I've a
single query for it such as the following:
SELECT Employee, ID, Period_End_Date, Units, [Date] FROM tblTimeEntry WHERE
(Employee LIKE ? + '%')
Simple enough. And I can do my FILL via something like:
Dim strUserID As String ' User Name Filter
strUserID = UCase("feu001")
daTimberline.SelectCommand.Parameters(0).Value = strUserID
daTimberline.Fill(dsTimberline.tblTimeEntry)
What I'd like to know is HOW to do a query with TWO (2) queries. Say Employee
(user Name - as above) _and_ something else (say Date)?
In the past I've had one reply. Although he tried to tell me. His answer
wasn't too clear to me (I've only been dealing with DB's for less than 2 weeks
now). So the answer kind of went over my head
So any info and some more detailed info would be appreciated.
Basically... I've an Access file that has User info and Dates and Time Sheet
entry stuff.
What I want to do is to do a FILL (or what ever I need to do) using the Users
NAME (employee) and a DATE. Right now I can do one or the other... not both.
As long as I get the records for that User and Time periods (can be 1 to 50
+/- record sets). I'd rather work with this number rather than hundreds of
plain User record sets (which is what I get with just User name filtering).
Thanks for any help in advance.
Regards,
Bruce
single query for it such as the following:
SELECT Employee, ID, Period_End_Date, Units, [Date] FROM tblTimeEntry WHERE
(Employee LIKE ? + '%')
Simple enough. And I can do my FILL via something like:
Dim strUserID As String ' User Name Filter
strUserID = UCase("feu001")
daTimberline.SelectCommand.Parameters(0).Value = strUserID
daTimberline.Fill(dsTimberline.tblTimeEntry)
What I'd like to know is HOW to do a query with TWO (2) queries. Say Employee
(user Name - as above) _and_ something else (say Date)?
In the past I've had one reply. Although he tried to tell me. His answer
wasn't too clear to me (I've only been dealing with DB's for less than 2 weeks
now). So the answer kind of went over my head
So any info and some more detailed info would be appreciated.
Basically... I've an Access file that has User info and Dates and Time Sheet
entry stuff.
What I want to do is to do a FILL (or what ever I need to do) using the Users
NAME (employee) and a DATE. Right now I can do one or the other... not both.
As long as I get the records for that User and Time periods (can be 1 to 50
+/- record sets). I'd rather work with this number rather than hundreds of
plain User record sets (which is what I get with just User name filtering).
Thanks for any help in advance.
Regards,
Bruce