|
-
Jun 30th, 2005, 01:06 AM
#1
Thread Starter
Lively Member
Data Reports
Hi to all
I have a problem in Data report, I am using two tables in dataenviornment and linking them to show in report.
The problem is that the report does not get refreshed for only second time, for exampe if i press the print report for the first time it shows the correct report, but after updating the record in tables and pressing print report it shows the first record or report, and after that it shows right results.
i am using the folowing code for printing report
DataEnvRpt.rsCommandRpt.Open
DataEnvRpt.rsCommandRpt.Requery
Report.Refresh
Report.Show
DataEnvRpt.rsCommandRpt.Close
please reply as soon as possible
-
Jun 30th, 2005, 03:58 AM
#2
Re: Data Reports
Welcome to VBF!
Try this...
VB Code:
DataEnvRpt.rsCommandRpt.CursorLocation = adUseClient
DataEnvRpt.rsCommandRpt.Open
DataEnvRpt.rsCommandRpt.Requery
Report.Refresh
Report.Show
DataEnvRpt.rsCommandRpt.Close
-
Jul 1st, 2005, 05:15 AM
#3
Thread Starter
Lively Member
Re: Data Reports
Thanks a lot dee-u
thanks 4 the nice welcome n the code (it worked)
as u know i am new to this forum culture, therefor i don't know to much of it. can u plz be me first fourm friend and help be to understand its components.
waiting 4 +ve responce
bye n tk care
JatinProg
Last edited by JatinProg; Jul 1st, 2005 at 05:19 AM.
-
Jul 1st, 2005, 06:04 AM
#4
Re: Data Reports
 Originally Posted by JatinProg
therefor i don't know to much of it. can u plz be me first fourm friend and help be to understand its components.
What do you mean by 'understand its components'?
-
Jul 1st, 2005, 06:10 AM
#5
Re: Data Reports
I think he means the forum; to show him the ropes, tips&tricks, FAQ and all that
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|