Hi,
I'm creating a winform application that will query a database for all records processed today.
on that row I have dates as 20101229
I need to Count how many rows have the same " date" as today and yesterday.
My problem is how to use the already in place dataset and not create a connectionstring, adapter and query on the form?
Using the query builder on my dataset I'm not able to generate the query because of the date issue
all values of yesterday
SELECT *
FROM BOOKINGS WHERE ( PROCESS_DATE = "#" & format(PROCESS_DATE,"mm/dd/yyyy") & "#" ) = (Date() - “ 1”)
all values of today
SELECT *
FROM BOOKINGS WHERE ( PROCESS_DATE = "#" & format(PROCESS_DATE,"mm/dd/yyyy") & "#" ) = Date()
then I would need a Count how many with the same day as today and yesterday
I'm new at winforms and vb.net, any help will be appreciated,
Thanks,
Kerberos
I'm creating a winform application that will query a database for all records processed today.
on that row I have dates as 20101229
I need to Count how many rows have the same " date" as today and yesterday.
My problem is how to use the already in place dataset and not create a connectionstring, adapter and query on the form?
Using the query builder on my dataset I'm not able to generate the query because of the date issue
all values of yesterday
SELECT *
FROM BOOKINGS WHERE ( PROCESS_DATE = "#" & format(PROCESS_DATE,"mm/dd/yyyy") & "#" ) = (Date() - “ 1”)
all values of today
SELECT *
FROM BOOKINGS WHERE ( PROCESS_DATE = "#" & format(PROCESS_DATE,"mm/dd/yyyy") & "#" ) = Date()
then I would need a Count how many with the same day as today and yesterday
I'm new at winforms and vb.net, any help will be appreciated,
Thanks,
Kerberos