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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hello, I created a form within V

Status
Not open for further replies.

dalex17

Technical User
Jul 14, 2002
96
US
Hello,

I created a form within the VB screen of my Access database and called it UserForm1. The only object in that form is a picture of a progress bar.

My question is: How do I link that progress bar to my save button which is on the form. I want that progress bar to execute each time I click the save button.

FYI - I obtained that progress bar from the internet and think it would be cool to incorporate it into my database.

dalex

 
Look at the code 'under' the progress bar. It should tell you how to do what you wish. If you cannot understand it show the code here and someone will help.

Rollie E
 
This is the code behind the progress bar:

Private Sub FrameProgress_Click()

End Sub

Private Sub UserForm_activate()
Call Main
End Sub

This is the SAVE code:

Private Sub Command71_Click()
On Error GoTo Err_Command71_Click


DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70

Exit_Command71_Click:
Exit Sub

Err_Command71_Click:
MsgBox Err.Description
Resume Exit_Command71_Click

End Sub

I guess I am just trying to combine them.

Thanks,

Dalex











 
Place the following code in the first sub above.


msgbox "I am here"

This will show you how often it fires.

Rollie E
 
I'm not interested in how often "it fires", I'm intrested in making it work in conjuction with my save button.

Thanks,

Dalex
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top