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 > Data Access, Manipulation & Batch Languages > Delphi, C etc > how to requery datareport when you need to pass parameters also

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-26-03, 02:47
teresachristy teresachristy is offline
Registered User
 
Join Date: Jun 2003
Posts: 1
Question how to requery datareport when you need to pass parameters also

i had a problem in retrieving new records into vb6's datareport from a foxpro database when i didn't use requery. so, i tested requery with a simple command which didn't need any parameters. the code was

Set DataReport1.DataSource = DataEnvironment1
DataEnvironment1.rsCommand1.Requery
DataReport1.Show

it worked correctly.

but, in my real application, i need to pass parameters to the command in dataenvironment. i'm not being able to use requery in that case. the code i use is

DataEnvironment1.Connection1.Open
DataEnvironment1.rvcommand_Grouping str1, str2
datareport1.Show

here, i'm not being able to use the requery. i tried to insert it as

DataEnvironment1.Connection1.Open
DataEnvironment1.rvcommand_Grouping str1, str2
dataenvironment1.rsrvcommand_grouping.requery
report1.Show


but, it's giving error. can anyone tell me how to use requery correctly with a command that needs parameters.
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