Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how can i generate reports from my visual basic design?

Status
Not open for further replies.

ryeolivier

IS-IT--Management
Dec 20, 2001
11
0
0
PH
please help me, i dunno how can i generate reports from my visual basic application. by the way, im using an ms-access database.
 
You can use a datareport, in the menu project. You must spcify the datasource property (it can be a recordset, or an adodc control) and then put the textboxes spcifying the datafiled according to your database.


Eli
 
how can i do this? please help. only these reports are missing in my apps.
 
in the project menu, where you can add a new form to your application, there is an option to add a data report, if its not there you can add it from the components list, once youve add it, you start to design it just like access:

datareport1.datasource="Select * from table1"
datareport1.datamember=""

all you have to do is add textboxes to the report, and specify the datafield.

i hope this helps.

Eli
 
but, how can i pass the parameter value from the main form?
thanks in advance.
 
for example:


datareport1.datasource= "Select * from table1 where id= " & text1.text


Datareport1.DataMember=""
datareport1.show

i hope it helps.

Eli
 
but there is an error prompt that says: runtime error 91:
object variable or with block variable not set.

what can i do.. sorry if i kept on bugging you.

happy new year
 
mmm... are you putting textboxes in the datareport the way you want them? and their datafield property to the field of the database you want??
please send me your code if you can, and ill try to help you

heppy new year

elibb
 
ive created a temporary solution in this problem, that is by
creating reports from crystal reports.. but that doesnt solve the problem, coz i really wanted to integrate my reports into my running apps.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top