Wrox Programmer Forums
|
VB Databases Basics Beginning-level VB coding questions specific to using VB with databases. Issues not specific to database use will be redirected to other forums.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB Databases Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 17th, 2003, 01:16 PM
Registered User
 
Join Date: Jun 2003
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default updated printout problem

can anyone help me with this: i'm using an msaccess database to hold data which i can manipulate using vbcode within a form that also shows the data in a datagrid. on the same form, i have a button which activates a data report to print out the same data displayed on the datagrid. the data report has controls in it which is automatically filled with the data from the database using the data environment. the problem is that whenever i make changes to the database, the datagrid correctly displays the changes but when i click on the button to display the data report printout, only the data form the previous session of the application gets shown. is there any way to "refresh" the data environment or the data report so that it can be updated & reflect the changes in the data which i recently made?
 
Old October 4th, 2003, 05:34 PM
Registered User
 
Join Date: Sep 2003
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

jicker:

Look into the datagrid control to see if there is a "save data" or "update data".

I'd add this "save/update" method in either the click event of the button to print the report or in the "on change" event of the datagrid.



 
Old August 3rd, 2004, 08:16 AM
Registered User
 
Join Date: Aug 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to herty
Default

i want to use data report to print data in a datagrid control in visual basic 6.0. pls help me with the code to do that. Thank you






Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with DoCmd.Printout (Access2003) John Deutsch Access VBA 4 January 22nd, 2008 12:45 PM
Listbox printout scriptingit Access VBA 0 August 28th, 2006 08:59 AM
Printout Error? cmperez VB How-To 0 July 13th, 2006 10:29 PM
Web Printout problem achonk81 Crystal Reports 1 September 20th, 2005 09:21 PM
How to Get printout.............. arshad mahmood VB Databases Basics 1 August 11th, 2003 08:50 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.