View Single Post
  #1  
Old February 11th, 2010, 05:10 PM posted to microsoft.public.access.forms
GLT
external usenet poster
 
Posts: 154
Default Clicking a button via VBA

Hi,

I am trying to (using VBA), open a form, populate a combo box, and then
clicka button on the newly opened form...

I have tried the following:

DoCmd.OpenForm "frm01_Services"

Forms.frm01_Services.cmbServer.Value = Me!Server
Forms.frm01_Services.cmdGetServicesData.SetFocus
Forms!frm01_Services.cmbserver_Click -----Error

Line # 3 bombs - is there a function in access that allows me to do this?

Any help is always greatly appreciated...

Cheers,
GLT.