microsoft+access+training+course - command move table objects
The UK's Number 1 for Microsoft Office Training Add this page to your favourites/bookmarksBookmark page
 
View printable version of pagePrintable version
Plus One Google
Customer: Sign in
Delegate: Sign in
Trainer: Log in

Forum home » Delegate support and help forum » Microsoft Access VBA Training and help » microsoft+access+training+course - Command to move to the Table objects window

microsoft+access+training+course - Command to move to the Table objects window

resolvedResolved · Low Priority · Version Standard

replyReply Tue 8 Jan 2008, 13:36Delegate Iain said...

Iain has attended:
Access VBA course

Command to move to the Table objects window

Hi!

I've got a button on a form to close the form and I'd like to make it move to the Tables window when I click on it.

I tried...

DoCmd.GoToControl (Tables)

and

Dim db As Database
Set db = CurrentDb()

db.objects.Tables.SetFocus

...but neither worked.

Any ideas?

Thanks

For upcoming training course dates see: Pricing & availability

replyReply Wed 6 Feb 2008, 16:47Trainer Carlos said...

RE: Command to move to the Table objects window

Hi Iain

I have looked at this and consulted with some collegues and the general opinion is you cannot use code to go to a specific view of the database.

This may be due to to the fact that in most Access databases the tables are hiden from the user.

Sorry if I couldn't help more

Carlos

replyReply Thu 3 Apr 2008, 10:40Delegate Iain said...

RE: Command to move to the Table objects window

Carlos

I found the code that can do this in the Northwind db, so thought I'd post it in case its of use.

Private Sub cmdGoToTablesWindow_Click()

DoCmd.Close
DoCmd.SelectObject acTable, "Core", True

End Sub

...where "Core" is the name of one of your tables. I presume it will work for forms, reports etc.

Iain

 

Access tip:

Label printing

You can create a report in Access for printing labels All you have to do is is click New under the Reports object and then select Label Wizard and follow the steps

View all Access hints and tips


Microsoft Certified Partner Accredited Training Provider: Institute of IT Training Institute of Leadership and Management - Certified Courses Security Seal verified by visa, mastercard securecard