Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Automatic Refreshing

Status
Not open for further replies.

RichMH

Programmer
Aug 13, 1999
6
0
0
GB
I need to be able to refresh a control without the user having to activate it. I managed to do this using a timer interval, but having this constantly running slowed the other applications down too much. Does anyone know a better solution?
 
OR is it possible to display an Access table in a VB application, and will it display records as they are added by other users?
 
Hope this helps :<br>
After the user adds a record, you could 'refresh'..or you could refresh on almost any event...<br>
<br>
Private Sub cmdRefresh_Click()<br>
'This is only needed for multi user apps<br>
On Error GoTo RefreshErr<br>
adoPrimaryRS.Requery<br>
Exit Sub<br>
RefreshErr:<br>
MsgBox Err.Description<br>
End Sub<br>
----<br>
or<br>
----<br>
Private Sub cmdRefresh_Click()<br>
'This is only needed for multi user apps<br>
On Error GoTo RefreshErr<br>
datPrimaryRS.Refresh<br>
Exit Sub<br>
RefreshErr:<br>
MsgBox Err.Description<br>
End Sub<br>
<br>

 
You could use the 'data form wizard' to connect to access db or ODBC...I find the wizard extremely helpful in generating snippets,etc.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top