Access 2000 Front end is opening in design mode by default - ms-access

I am having an access 2000 front end. When i double click it, it is openning in design mede. But i want it to open in run mode only. It should open the form is design mode only when i click on mdb file, by pressing SHIFT key.
Can some one please assist me.

You either need to set the "start-up" options to display a default form on open, or alternatively you could create the "Autoexec" macro if you have more custom tasks to carry out on start-up.

Related

Custom ribbon does not display when database is opened from File menu

A custom ribbon is assigned to an (entire) database in the options for "Current Database" and displays when I open the database with a shortcut like this:
"C:\Program Files (x86)\Microsoft Office\root\Office16\MSACCESS.EXE" D:\d\music.accdb
However, if I close the database and re-open it from the File menu, the custom ribbon is no longer displayed.
If I attempt to load the custom ribbon from VBA, I get an error stating it is already loaded. (The "Client Settings" option is set to show add-in user interface errors, as of course the ribbon would otherwise not display when opened using the first method.)
I specifically re-assigned an individual form from its own custom ribbon to the database-wide custom ribbon to see if this would make the ribbon appear, but it did not when I opened the form. (The form's specific custom ribbon appeared okay before the reassignment.)
I'm using Access 16 as part of Office 365
.
Also, the database is listed twice on recently opened files. I have double-checked again and again: the exact same file is listed twice, with two different timestamps, as the last two files opened. Clicking the icon for one opens the database with the custom ribbon displayed; the other does not. If I instead browse and re-open the closed file from the Windows folder, the custom ribbon is not displayed.
Any ideas what would cause this?
dbmitch put me in the right direction. I was able to solve this and also eliminate the duplicate listing for the database on the File: Open: Recent menu by deleting all records in the table USysRibbons, performing a compact & repair, then restoring data to USysRibbons.

Completely locked up my Access database?

I think I may have completely messed up my application here! I was foolishly playing around with some settings in the File > Options menu for Access and turned a couple of things off. It said I needed to close and re-open, so I did, and now I can't do or edit anything. How do I revert back?
Right clicking the window doesn't help, I tried using Alt+F11 to switch to VBA but that doesn't help. I disabled the close button on the form already, so can't click the X.
I have spent hours working on this, and feel like I may have to start again.
Any ideas how I can get back into my file?
When you double click on the file; hold down SHIFT key.
When you open a database while holding down the SHIFT key, many of the options that you set on the Current Database page of the Access Options dialog box are bypassed.
Once you have bypassed these settings you can access your ribbons and options to reset your settings.

Create a standalone form shortcut in Microsoft Access 2013

I currently have a functioning form that searches through my database by calling a query. What I'm trying to do is turn this into a standalone application where I can simply open a file and only the form opens, running the database on the back-end. I have tried running a macro that opens the form, and I have tried creating a shortcut to my desktop, but nothing has worked.
Does anyone have any suggestions? Anything that will only show the form and the search results would be good (desktop shortcut, HTML file, etc.).
Thanks!
You will need to split your database so that the tables are located in a separate back-end file (which can be kept on a server). These instructions apply to Access 2007 and 2010 but the process is very similar for 2013.
Once this is done, your tables will become linked tables (stored in a separate file) and your front-end .addcb file will only contain queries, forms and reports.
You can control which form opens when the application loads through File -> Options -> Current Database. There are also several other useful controls here for limiting what the user can do; ie.
Hiding the list of database
Hiding the tabs (you will therefore need to create buttons to move between forms)
Hiding the Ribbon and/or status bar
Disabling Layout View
It's safest to change these settings on a copy, so you don't inadvertently lock yourself out; however, by holding down shift when opening the file from within Access, most of these options will be bypassed and you will be able to edit the database / revert these settings should you need to.
In terms of making it a "stand-alone application", it is possible to create a copy that will open without requiring the full version of MS Access on the user's PC (instead using Access Runtime).
I always distribute my front-ends as .accde format (File -> Export ACCDE). The benefits are as follows:
Smaller file size
Optimise memory usage / improves performance
VBA code runs but cannot be viewed or edited
I think what you're looking for is here:
http://office.microsoft.com/en-us/access-help/command-line-switches-for-access-HA010166605.aspx
and
http://office.microsoft.com/en-us/access-help/command-function-HA001228801.aspx
Basic idea, create a macro called AutoExec that checks for a command line argument when opening the database. Setup a shortcut with a command line argument (whatever you decide to name it, I'll use 'lookuponly' as the example.) like this:
"C:\Users\%Username%\Desktop\MyDatabase.mdb" /cmd "lookuponly"
when you double click the shortcut it should auto-run the macro and open your lookup form. Of course under newer versions of access you'll have to set the location of the database as a trusted location or access will attempt to block the database.
http://office.microsoft.com/en-us/access-help/decide-whether-to-trust-a-database-HA010256412.aspx

MS Access 2007 popup form refuses to display/not accessible in design mode (but present in list of forms)

Having a problem with MS Access 2007 refusing to display a form in design mode. I can see the code for the form (if I go through the event properties of a button that displays the form), but I cannot see the form laid out as a GUI. And, when I try and invoke this form from the application's main window, it does not display and locks up the whole GUI.
Now, I tried putting debug before and after the display of this form, and the debug does get invoked.
Anyone have any ideas? I tried looking at the Trust Center, and I set "Enable all Macros", but that didn't seem to matter.
A few steps I would take:
Make sure your form has the Auto Center, Auto Resize properties set to Yes.
I had an issue once with forms that opened outside the visible screen, Quite baffling.
Also try to change its PopUp and Modal properties to it becomes just a normal non-blocking form for your tests.
Your database may be corrupted.
Make a copy of your database and then decompile and compact it.
You can do that from the command line, for instance:
"C:\Program Files\Microsoft Office\Office12\msaccess.exe" "D:\Code\mydb.accdb" /decompile /compact
Export the VBA + Form resource, then delete the form from your Access client, then do the decompile+compact above again, then re-import the form.
' Export form and VBA to text files '
Application.SaveAsText acForm, "myForm", "myForm.txt"
' Import form and VBA from text files '
Application.LoadFromText, "myNewForm", "myForm.txt"

Access options in MS Access 2007

How can I disable the access-options or to hide it?
Update
If you open your MS Access 2007, you usually see the button at the upper left the "Microsoft Office button" and if you click on that, you'll see the different functions like: "new", "save", "open" etc and at the button you'll see the "access options" and "exit".
Make a ACCDE copy of the DB
This will Strip out your VB source (but will leave the compiled code intact).
but first get your menu setting the way you want
e.g.
1. click Access Options->Current Database.
2. Uncheck "Enable Full Menus" for this database
3. From the Database Tools menu, choose "Make ACCDE"
Note Unless you apply a valid digital signature to you DB, Access will warn about VB script and prompt user to Open or cancel good thing is it will quit if they don't accept run VB script but its better to create a digital signature for your DB
Hope this helps
Presumably this is only for the users. You can create a shortcut which the users use on their desktops which has the /runtime command line option. The problem though is you then have to add the path and file name of the msaccess.exe file, ie "C:\Program Files....\msaccess.exe"
Using the free Auto FE Updater makes this entire process a lot easier as well as automatically updating the FE as you make updates available to the users.