PC Review


Reply
Thread Tools Rate Thread

Basic help needed - Newbie to Access VBA

 
 
fire_rob
Guest
Posts: n/a
 
      30th Sep 2008
Hello:

I've spent much time searching and can't find an answer to my somewhat
embarrassing question.

I am new to using Access and VB in Access but I have some experience in
Excel, though it has been several years. I am trying to start up a project
and cannot seem to add any forms to my project to be used in the Visual BASIC
editor.

Specifically, I can add a form in the Access interface using the Database
window. When I go to the Visual BASIC editor it does not show up as part of
my project.

I have copied another project and can see the Main switchboard form that it
has in the project window and can access it with code, etc. Also if I copy
this form that I can see to a new form in the Database window of Access
(using right-click copy/paste routine) I can see the new form in the VB
project display. What am I missing here?

Also, how do I "see" tables that I have created as well in the VB editor?

Thanks for the help, I hope I have explained it well enough for someone to
answer.
 
Reply With Quote
 
 
 
 
Dirk Goldgar
Guest
Posts: n/a
 
      30th Sep 2008
"fire_rob" <(E-Mail Removed)> wrote in message
news:9B8CF8E5-09B5-48D4-92B7-(E-Mail Removed)...
> Hello:
>
> I've spent much time searching and can't find an answer to my somewhat
> embarrassing question.
>
> I am new to using Access and VB in Access but I have some experience in
> Excel, though it has been several years. I am trying to start up a
> project
> and cannot seem to add any forms to my project to be used in the Visual
> BASIC
> editor.
>
> Specifically, I can add a form in the Access interface using the Database
> window. When I go to the Visual BASIC editor it does not show up as part
> of
> my project.
>
> I have copied another project and can see the Main switchboard form that
> it
> has in the project window and can access it with code, etc. Also if I
> copy
> this form that I can see to a new form in the Database window of Access
> (using right-click copy/paste routine) I can see the new form in the VB
> project display. What am I missing here?
>
> Also, how do I "see" tables that I have created as well in the VB editor?
>
> Thanks for the help, I hope I have explained it well enough for someone to
> answer.



Not all Access forms have a VBA module attached to them. If a form has no
code, it doesn't show up in the VB Editor, because it isn't part of the VB
project. If you took that code and added some code to it -- for example, by
adding an event procedure to one of the events of the form or its
controls -- then it woud show up in the VB Editor, listed in the Porject
pane under "Microsoft Office Access Class Objects", or some variation of
that term depending on the version of Access you're using.


--
Dirk Goldgar, MS Access MVP
www.datagnostics.com

(please reply to the newsgroup)

 
Reply With Quote
 
fire_rob
Guest
Posts: n/a
 
      30th Sep 2008
Thank you!


"Dirk Goldgar" wrote:

> "fire_rob" <(E-Mail Removed)> wrote in message
> news:9B8CF8E5-09B5-48D4-92B7-(E-Mail Removed)...
> > Hello:
> >
> > I've spent much time searching and can't find an answer to my somewhat
> > embarrassing question.
> >
> > I am new to using Access and VB in Access but I have some experience in
> > Excel, though it has been several years. I am trying to start up a
> > project
> > and cannot seem to add any forms to my project to be used in the Visual
> > BASIC
> > editor.
> >
> > Specifically, I can add a form in the Access interface using the Database
> > window. When I go to the Visual BASIC editor it does not show up as part
> > of
> > my project.
> >
> > I have copied another project and can see the Main switchboard form that
> > it
> > has in the project window and can access it with code, etc. Also if I
> > copy
> > this form that I can see to a new form in the Database window of Access
> > (using right-click copy/paste routine) I can see the new form in the VB
> > project display. What am I missing here?
> >
> > Also, how do I "see" tables that I have created as well in the VB editor?
> >
> > Thanks for the help, I hope I have explained it well enough for someone to
> > answer.

>
>
> Not all Access forms have a VBA module attached to them. If a form has no
> code, it doesn't show up in the VB Editor, because it isn't part of the VB
> project. If you took that code and added some code to it -- for example, by
> adding an event procedure to one of the events of the form or its
> controls -- then it woud show up in the VB Editor, listed in the Porject
> pane under "Microsoft Office Access Class Objects", or some variation of
> that term depending on the version of Access you're using.
>
>
> --
> Dirk Goldgar, MS Access MVP
> www.datagnostics.com
>
> (please reply to the newsgroup)
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help needed- Newbie access user RB Microsoft Access Reports 3 1st Jul 2010 11:24 PM
Visual Basic & Access Newbie - Help! gjoneshtfc@volcanomail.com Microsoft Access 11 27th Oct 2005 04:10 PM
please I need help with basic ado.net save, basic syntax needed =?Utf-8?B?TmV3YmVlIEFkYW0=?= Microsoft Dot NET 5 28th Jun 2005 07:09 AM
Newbie, Help needed with visual basic editor. Sims Microsoft Excel Discussion 0 29th Jun 2004 02:31 PM
Re: Porting from Excel 2000 to Access 97 - Basic tutorial needed John Vinson Microsoft Access VBA Modules 0 21st Apr 2004 11:21 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:18 AM.