473,387 Members | 1,904 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

shift enter as a button

poss a silly question, but basically i have a database where its properties mean when it is opened (enter / double click) the actual database, and options (file/edit/...etc) are hidden and only the 'start up' form is shown, from where people can navigate the database through forms etc. by pressing shift enter (at home) will allow me 'fully' access. however, at work where the database is used, the shift key is dissabled. is there a way i can put a button on the start up form which when pressed/clicked, i could get into the full database as like pressing shift enter?? a back door as such
cheers
Jan 21 '08 #1
9 3518
NeoPa
32,556 Expert Mod 16PB
Normally a double-click or such other event on a particular area of your main form is used as a trigger for getting in.

I don't have menus disabled in mine, but I use ...
Expand|Select|Wrap|Line Numbers
  1. Call DoCmd.SelectObject(Objecttype:=acForm, _
  2.                         Objectname:="frmMainMenu", _
  3.                         InDatabaseWindow:=True)
... to get access to the database window. frmMainMenu is the name of my startup form. You'd need to replace this with your own one.
Jan 23 '08 #2
NeoPa
32,556 Expert Mod 16PB
I did a little more digging and found another line that could be even more helpful.
Expand|Select|Wrap|Line Numbers
  1. Call DoCmd.RunCommand(Command:=acCmdStartupProperties)
Jan 23 '08 #3
many thanks for your help, will give it a try. cheers
Jan 23 '08 #4
NeoPa
32,556 Expert Mod 16PB
No problems. Let us know how you get on :)
Jan 23 '08 #5
interesting, using the last code, works fine at home (access 2007), but when save as a 2002 format, and opened at work doesnt.
I've put the code on so when you doible click a label, it opens the databases attributes/properties box, i can then set 'show database' etc, but it doesnt work at work?? any ideas
cheers
Jan 24 '08 #6
NeoPa
32,556 Expert Mod 16PB
I'm afraid I don't know much about differences between versions. It works on my home system (under Access 2003). Have you looked in the help system when you're on your work system to see what it says about it?
Jan 25 '08 #7
hi works computers are so limited, that they even block that function. but cheers for all your help, i'll see if i can get around it.
thanks
Jan 26 '08 #8
NeoPa
32,556 Expert Mod 16PB
In what way is it blocked?
Is it simply that a reference is not set?
Jan 26 '08 #9
its a big company i work for, they block access to lots of things. loads of 'red tape' to go through to get access to stuff. but cheers anyway
Jan 26 '08 #10

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Mariusz | last post by:
Hi, I would like to use shift button to select multiple rows in table but there seems to be problem with it. I have table rows inside the <a> tag so I can drag them and drop like in windows...
7
by: Susan Bricker | last post by:
I know that I saw some information concerning the <shift>+<enter> combination use to bypass launching an Access mdb application and enter the Access design workspace. Would someone please direct...
4
by: Paul T. RONG | last post by:
Dear All, I add two new tables to the database and then the disable shift key codes don't work. These two new tables are actually created by two queries, and only these two are in the front end,...
4
by: Vazz | last post by:
I am trying to capture the key combination "Control + Shift + Enter" in a KeyDown event. I am able capture "Control + Enter" using (e.KeyCode == Keys.Enter && e.Modifiers == Keys.Control). How do I...
7
by: Csaba Gabor | last post by:
I'd like to detect the shift key when a button is "clicked" in Firefox/Mozilla. If the button is clicked with the mouse, no problem. However, if the onclick event is keyboard originated, then my...
2
by: pemigh | last post by:
Client's fingers have been well trained on another application to wrap lines by hitting shift-enter, and wants the same in Access application. Changing "enter key behavior" for controls is not...
2
by: dotnetnoob | last post by:
when the user log into my application, there is a dialog pop up with some paramereters that need to set. a radio button is default to checked and a textbox is right next to it. i want the cursor...
2
by: Sunfire | last post by:
I was wondering if there was a way to hit enter to insert blank lines while in the designer? I tried this but all it seems to want to do is insert code that really shouldn't be there. For example,...
3
by: buddyr | last post by:
can I use VB to work in microsoft excel to cause the enter button to shift to the right instead of down. I only want one worksheet to have this in. Trying to get code in Private Sub...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.