assigning command buttons to open tables?

  • Thread starter Thread starter qweasd
  • Start date Start date
Q

qweasd

Guest
Hi,
i am currently trying to assign command buttons on my form (access 2000) to link to and open a table in my database. The wizard doesnt let you do this, its limited to linking to other forms, queries, etc. only.
Could anyone tell me the VB code for assigning a buttons to open a table please? if the table is called table1 lets say.
any help is appreciated, thanks.
 
Put this code on the onclick event:

Docmd.opentable "table1", acviewnormal


HTH
Andy
 
thanks very very much mate, it worked.
 
Of course it Worked.
No problem, happy to help.

Andy;)
 

Users who are viewing this thread

Back
Top Bottom