Microsoft Access Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsDatabasesMicrosoft Access Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old May 31st, 2005, 05:39 PM
BetsyBean BetsyBean is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 14 BetsyBean User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 22 m 15 sec
Reputation Power: 0
Database Window via Code

Hi all,

Can I display the database window via code? I wish to create a command button on a
form that would check for user name (already can do this part) and allow certain names
only to access the database window. I have already disabled all the options under startup
and have bypassed the "shift" key as well.

Thank you so much in advance!

BetsyBean

Reply With Quote
  #2  
Old June 1st, 2005, 09:38 AM
lwells lwells is offline
Contributing User
Dev Articles Novice (500 - 999 posts)
 
Join Date: Sep 2004
Posts: 632 lwells User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 21 h 59 m 38 sec
Reputation Power: 5
Use the DoCmd.SelectObject method
Example:

DoCmd.SelectObject acForm, , True

This will open the database window to the Forms Tab. You can specify which tab in the database window to display by changing the required Object Type to acTable to display the Table Tab or acQuery to display the Query Tab etc.

lwells

Reply With Quote
  #3  
Old June 2nd, 2005, 02:42 PM
BetsyBean BetsyBean is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 14 BetsyBean User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 22 m 15 sec
Reputation Power: 0
Thanks

Thank you so much! It works perfectly for me. I certainly wish I had your expertise with Access

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesMicrosoft Access Development > Database Window via Code


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT