If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > General > Applications & Tools > Visual Basic Data Report

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-08-03, 14:20
prog nirvana prog nirvana is offline
Registered User
 
Join Date: Dec 2003
Location: CANADA
Posts: 2
Exclamation Visual Basic Data Report

i was pondering, is it possible to create Visual Basic Data Report at runtime using ADO and SQL statements.
any input will be appreciated
Reply With Quote
  #2 (permalink)  
Old 01-21-04, 01:13
acqua acqua is offline
Registered User
 
Join Date: Jan 2004
Posts: 4
Re: Visual Basic Data Report

I want to view report using data report with a specified criteria
how can i do

that is i want to get only records between 2 dates

acqua
Reply With Quote
  #3 (permalink)  
Old 01-21-04, 10:30
programming nir programming nir is offline
Registered User
 
Join Date: Jan 2004
Location: CANADA
Posts: 2
Lightbulb Data Report

i dont know if it will help you but this is what i used to run my report in crystal and vb where a bunch of variables are used to form a sql string which is executed with command and data is put in a report.

Set datcmd1 = New ADODB.Command
Set datcmd1.ActiveConnection = cnn1
datcmd1.CommandText = VehInfoRep.infosqlstr
datcmd1.CommandType = adCmdText


' Add the datasource to the report
m_Report.Database.AddADOCommand cnn1, datcmd1
Set fld = m_Report.Section3.AddFieldObject("{ado." & valarr(0) & "}", 400, 0)
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On