Hello Guys.. I need Your Help.. To generate the report of the daily weekly monthly and yearly report of my database.
Can You Give me Example or Idea to Solve my Problem,
Thanks Guys
6 Replies - 806 Views - Last Post: 13 March 2013 - 09:22 PM
#1
Generate Daily Weekly Monthly and Yearly Report using MS ACCESS 2003
Posted 10 March 2013 - 08:41 AM
Replies To: Generate Daily Weekly Monthly and Yearly Report using MS ACCESS 2003
#2
Re: Generate Daily Weekly Monthly and Yearly Report using MS ACCESS 2003
Posted 10 March 2013 - 11:18 AM
There are hundreds of ways to generate reports, but it all depends on how you want to proceed. So more explanation on your part and also some effort on what you have looked into.
#3
Re: Generate Daily Weekly Monthly and Yearly Report using MS ACCESS 2003
Posted 10 March 2013 - 03:29 PM
i want to generate the report in weekly, monthly, and annually.
the for mat of the date is mm/dd/2013. this is what i have done before but the error is always popup The Date you Select Does Not Exist!" .. even though the date already in db.
the for mat of the date is mm/dd/2013. this is what i have done before but the error is always popup The Date you Select Does Not Exist!" .. even though the date already in db.
Dim listx As ListItem
Dim rs As New ADODB.Recordset
If DTPicker1.Value = "" Then
MsgBox "The Date Field is Empty.", vbExclamation, "Details"
Else
rs.Open "Select * from Dailyrecord where purchase_date = " & DTPicker1.Value & "", acd, adOpenForwardOnly
If rs.RecordCount = 0 Then
MsgBox "The Date you Select Does Not Exist!", vbExclamation, "Details"
Else
ListView1.ListItems.clear
While rs.EOF <> True
Set listx = ListView1.ListItems.Add(, , rs.Fields("Receipt"))
listx.SubItems(1) = rs.Fields("BarCode")
listx.SubItems(2) = rs.Fields("ProductName")
listx.SubItems(3) = rs.Fields("Quantity")
listx.SubItems(4) = rs.Fields("Price")
listx.SubItems(5) = rs.Fields("TotalPrice")
listx.SubItems(6) = rs.Fields("purchase_date")
rs.MoveNext
Wend
End If
ListView1.Enabled = True
End If
#4
Re: Generate Daily Weekly Monthly and Yearly Report using MS ACCESS 2003
Posted 12 March 2013 - 09:37 PM
Probably because DTPicker1.value doesn't match the value in your purchase_date field. You might try using the CDate function on both of them and comparing the result.
#5
Re: Generate Daily Weekly Monthly and Yearly Report using MS ACCESS 2003
Posted 12 March 2013 - 10:05 PM
#6
Re: Generate Daily Weekly Monthly and Yearly Report using MS ACCESS 2003
Posted 13 March 2013 - 01:16 AM
Google VB6 CDate for an example, please don't expect people to do everything for you.
We're not here to your work, please at least put a little effort in yourself.
We're not here to your work, please at least put a little effort in yourself.
#7
Re: Generate Daily Weekly Monthly and Yearly Report using MS ACCESS 2003
Posted 13 March 2013 - 09:22 PM
Also, I have a post pinned up top that gives a link to the VB6 reference. You can easily find it there.
Page 1 of 1
|
|

New Topic/Question
Reply



MultiQuote








|