473,379 Members | 1,257 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,379 software developers and data experts.

How to automatically refresh report/datagrid when new entry is entered

284 100+
I am using VB6 and SQL Server 2000.
i want to know how to do this

we have two/three computers working in our office sql server is installed in maincomputer where we only see the report do not enter data.

now situaiton is i want that when the clients from the other computer update or enter data in the table even if the report or datagrid is open
in the maincomputer it should refresh autmatically.

for e-g suppose we recive an order and on the maincomputer a report is open which shows todays order to be deliver then the data of new order is entered from other computer the on the main computer daily order report should autmatically be refresh and show the current order list .

i donot know how to refresh datareport/data on datagrid automatically when user enter the data

i also want to give time stamp how the that the order has been placed
plz tell me both answers

thanks
Feb 8 '08 #1
3 3205
debasisdas
8,127 Expert 4TB
Try to refresh recordset at a particular time interval.

Once the other user commits the changes will be refreshed in all the systems.
Feb 8 '08 #2
QVeen72
1,445 Expert 1GB
Hi,

If your Orders Recordset is huge, then Refreshing for at regular intervals (5 mins or so..) may become a tedious and high network traffic. What you can do is Create a new Table with one Field, and Populate that Field With the Last Order Number. This you have to do When you are saving the New Order Entry.
This table should always have One Record -OneField(Last Order Number) at any given time..

In Form_load of Datagrid Form, Query for that Number and Save it in FormLevel Variable. Now Start (Enable) a Timer in FormLoad. For every 5 mins, Check for that Field in TempTable. If Your FormVariable <> TempTable.FieldName, Then ReFresh the DataGrid/Datreport.. along with a message to user.
This logic will prevent you from un-necessarily opening a huge recordset at regular Intervals..
Feb 8 '08 #3
muddasirmunir
284 100+
thanks i will try it




Hi,

If your Orders Recordset is huge, then Refreshing for at regular intervals (5 mins or so..) may become a tedious and high network traffic. What you can do is Create a new Table with one Field, and Populate that Field With the Last Order Number. This you have to do When you are saving the New Order Entry.
This table should always have One Record -OneField(Last Order Number) at any given time..

In Form_load of Datagrid Form, Query for that Number and Save it in FormLevel Variable. Now Start (Enable) a Timer in FormLoad. For every 5 mins, Check for that Field in TempTable. If Your FormVariable <> TempTable.FieldName, Then ReFresh the DataGrid/Datreport.. along with a message to user.
This logic will prevent you from un-necessarily opening a huge recordset at regular Intervals..
Feb 8 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

9
by: Mark | last post by:
I have a working PHP/MySQL application used for data entry. The data entry screen includes a "Save" button. The PHP code for this button looks like this: if (isset($_POST)) { if ($_POST ==...
5
by: Alan | last post by:
Hi there, Are there Excel charting gurus here?? If so then please read on... Sorry for the cross-post but I'm not familiar with the Excel groups. I've posted to asp.general because if I have...
0
by: Norman Fritag | last post by:
Hi there, I have one subform in a Master form, which is set to add mode only. I allow only for data entry. Sofar all words fine. All information on the main form is set for display only and have...
4
by: Melson | last post by:
Hi I've a problem. Can anyone help. I would like to use datagrid for data entry. How can I set the number of rows in the datagrid. And use the datagrid to update the ms sql table. regards...
2
by: john | last post by:
My report is based on a query with user input . In my report I have a text box with the following code: =. This works when the query outcome is 1 or more records. But when the query output is zero...
3
by: pv1 | last post by:
Hello, I am somewhat new to Access and vba, but am trying to complete a request that has been made of me. Access version 2002 WindowsXP. At this point these text boxes are bound to the table...
13
by: Mary | last post by:
I'll pulling my hair out on this one and would be so appreciative of any help. I am creating a data entry form to enter results of a student survey. There are 40 questions on the survey. The...
4
theaybaras
by: theaybaras | last post by:
Hi All... I've read both of the requery discussions I could find... Refresh ComboBox After Adding New Values via a Seperate Form and refresh a form but am not quite able to get this to apply...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.