Skip to main content
GameDev.net gamedev.net
🔒 Locked

Datareport and refresh in visual basic

Started by Pillejunior Oct 7, 2002 at 4:00 AM 0 replies 150+ views
Original Post
Pillejunior
Pillejunior
I have a dataenvironment with a couple of command objects in it. These command object are sql queries to get the data from a database between two dates. In my program you can change the dates and then you press show and a datareport comes in the screen and shows yoy the data from the database between the two dates you gave. In the code i write the new query into the commandtext object and open and close the object and requery to make sure the data is refreshed. The problem is that when you change the dates often you have to press show 2 times before the right data is on the report. How do i make the refresh so that the data is always wright the first time you press the show button. thanx in advance PS: And how do you remobe the 2 buttons in the upperleft of a datareport when you use the .show method??

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.