Connecting Tech Pros Worldwide Help | Site Map

New to VB -- how to open an Access table?

 
LinkBack Thread Tools Search this Thread
  #1  
Old November 13th, 2005, 01:33 AM
Sean Strauss
Guest
 
Posts: n/a
Default New to VB -- how to open an Access table?

Hi! Help!!

I'm new to VB, and although I understand all the theory I need to
program, I don't know the docmd commands. In particular, right now
I'm just trying to open a table in Access -- yes, that's all -- but
the darned thing doesn't give me any useful clues as to what I'm doing
wrong. Here are samples of commands that don't work:

DoCmd.OpenTable tblRequired_OC
DoCmd.OpenTable (tblRequired_OC)
DoCmd.OpenTable (tblRequired_OC,acViewNormal,acEdit)
DoCmd.OpenTable tblRequired_OC, acViewNormal, acEdit

I have no idea what I'm doing wrong, and all the books must think that
this is too easy to give help for this. Anyone? Thanks muchly...

  #2  
Old November 13th, 2005, 01:34 AM
Rick Brandt
Guest
 
Posts: n/a
Default Re: New to VB -- how to open an Access table?

"Sean Strauss" <sean_strauss@eed.state.ak.us> wrote in message
news:8a0f2ee0.0408031354.30bc4b09@posting.google.c om...[color=blue]
> Hi! Help!!
>
> I'm new to VB, and although I understand all the theory I need to
> program, I don't know the docmd commands. In particular, right now
> I'm just trying to open a table in Access -- yes, that's all -- but
> the darned thing doesn't give me any useful clues as to what I'm doing
> wrong. Here are samples of commands that don't work:
>
> DoCmd.OpenTable tblRequired_OC
> DoCmd.OpenTable (tblRequired_OC)
> DoCmd.OpenTable (tblRequired_OC,acViewNormal,acEdit)
> DoCmd.OpenTable tblRequired_OC, acViewNormal, acEdit
>
> I have no idea what I'm doing wrong, and all the books must think that
> this is too easy to give help for this. Anyone? Thanks muchly...[/color]

The name of the table argument takes a string ("put quotes around it").


--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com


  #3  
Old November 13th, 2005, 01:34 AM
fredg
Guest
 
Posts: n/a
Default Re: New to VB -- how to open an Access table?

On 3 Aug 2004 14:54:41 -0700, Sean Strauss wrote:
[color=blue]
> Hi! Help!!
>
> I'm new to VB, and although I understand all the theory I need to
> program, I don't know the docmd commands. In particular, right now
> I'm just trying to open a table in Access -- yes, that's all -- but
> the darned thing doesn't give me any useful clues as to what I'm doing
> wrong. Here are samples of commands that don't work:
>
> DoCmd.OpenTable tblRequired_OC
> DoCmd.OpenTable (tblRequired_OC)
> DoCmd.OpenTable (tblRequired_OC,acViewNormal,acEdit)
> DoCmd.OpenTable tblRequired_OC, acViewNormal, acEdit
>
> I have no idea what I'm doing wrong, and all the books must think that
> this is too easy to give help for this. Anyone? Thanks muchly...[/color]

DoCmd.OpenTable "TableNameinQuotes"
--
Fred
Please only reply to this newsgroup.
I do not reply to personal email.
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,662 network members.