|
-
Mar 24th, 2009, 07:15 AM
#1
Thread Starter
Lively Member
problem with datareport
hi everyone
well i made a form that has textboxes, its more on curiculum vitae. .
what i want is when i click print button it will display the current record on the data report, but when i use this code
it shows the first record and u have to click the next to find the record you what to print
anyone knows the code for when i click the print button it will display the current record im browsing into the datareport and not the first button
thanks in advance guys
Last edited by creek16; Mar 24th, 2009 at 08:22 AM.
Discovery consists in seeing what everybody else has seen and thinking what nobody else has thought.
- Albert Szent-Gy-rgi
-
Mar 24th, 2009, 08:13 AM
#2
Re: problem with datareport
-
Mar 24th, 2009, 12:04 PM
#3
Re: problem with datareport
It depends on how you set the datasource for your report. Your datasource should contain only the record you want to print.
-
Mar 25th, 2009, 01:45 AM
#4
Thread Starter
Lively Member
Re: problem with datareport
yeah
there are lot of records
lets say record 1, 2, 3, 4, 5 now im currently browsing record 3, wat i want is when i press print button it will show the datareport displaying record 3 not record 1.
Discovery consists in seeing what everybody else has seen and thinking what nobody else has thought.
- Albert Szent-Gy-rgi
-
Mar 25th, 2009, 02:25 AM
#5
Re: problem with datareport
Have you looked into this?
-
Mar 25th, 2009, 10:43 AM
#6
Re: problem with datareport
Code:
Dim rsR as new ADODB.Recordset
rsr.Open "Select * from yourtable where yourfieldname='" & selectedrecord & "'",conYourconnection
With DataReport1
set .Datasource = rsR
.Datamember = rsR.Datamember
.Show
End With
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
|