Advertisement

03.15.2008 at 07:37AM PDT, ID: 23243992
[x]
Attachment Details

How can I force refresh form in a MS Access 2003 with VB, I created a refresh btn with a wizard and it does not work

Asked by arepin in Access Forms, VB Database Programming, Access Coding/Macros

Tags: Microsoft, Access, 2003

How can I force refresh form and 2 subforms in a MS Access 2003 with VB, I created a refresh btn with a wizard and it does not work. Access says "an action or cmd refresh is not available now"  I place the btn on a form
Here is the btn code that was generated by access;
Then set the Timer Interval to 10000
(right below On Timer in the Event tab.
Private Sub Command15_Click()
On Error GoTo Err_Command15_Click
DoCmd.DoMenuItem acFormBar, acRecordsMenu, 5, , acMenuVer70

Exit_Command15_Click:
    Exit Sub

Err_Command15_Click:
    MsgBox err.Description
    Resume Exit_Command15_Click
   
End Sub

I also tried to use on timer event in form properties
I tried the Me.requery and Froms!fmetersstatus.requery
I set interval to 1000

In both cases Access would give me errors: "macro me could not be found" and that macro "Froms!ffmetersstatus could not be found". Do I need to creat macros

Please help
Thank you


    Start Free Trial
 
Loading Advertisement...
 
[+][-]03.15.2008 at 07:21PM PDT, ID: 21135342

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Access Forms, VB Database Programming, Access Coding/Macros
Tags: Microsoft, Access, 2003
Sign Up Now!
Solution Provided By: pwtucker
Participating Experts: 2
Solution Grade: A
 
 
[+][-]03.18.2008 at 07:03PM PDT, ID: 21157904

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628