I have made a form on access which will be used by other employees within the company, however they have never used access before and they are wanting to access only just the form as I feel with Access and all the tools in the background will confuse them, plus I don't want them editing the data base its self.
Is there a way to only bring up the form, unless I obviously need to edit the date base.
I've done some research on Google and it seems I need to use:
SW_SHOWMINNOACTIVE
However I can not seem to find how I would use this or where?
and also if i did find a way to only bring up the form, how would I be able to switch it from that veiw to the veiw I edit in?
doCmd.RunCommand acCmdAppMinimize in Form_Load (or Form_Open) events.
This works great to hide Access and only display the main form (like a standalone app).
But I have 2 issues:
1. The PopUp form (main or "switchboard" if you like) opens, then Access is minimized, but then the form looses focus. If there are other programs running, form will be behind them!
2. Access is first seen opening (for a moment) and THEN minimized (see 1.). Is there a way NOT TO SEE IT at all? :)
My access database is on one central desktop. When I go to the office, my laptop "connects" with this central desktop and uses the database. Also, my partner's laptop connects with this central desktop as well.
For some reason, when I connect to the central desktop's database via my laptop at the office, my partner can't connect to it. When he doubleclick's the .mdb file, nothing happens, no error message, nothing. Properties don't even come up when right-clicking the icon.
However, when my partner is connected with the central desktop's access database, I can still connect to it.
We both used to be able to connect to the central desktop with no problems.
Not sure what is the problem now. I've tried changing the security levels of the macros on my laptop, as well as the access database, but no luck. Does anybody know what could be causing this?
Is it possible to open an access data base using a .bat command? I have a .bat file that combines multiple files and archives the individual files. I'd like to auitomatically start up the access data base from within that .bat file. Or, is there an easy way to import multiple files?
Hi, I am trying to open an access database from a different database using VBA. I have pasted my code below. When I run it it opens a new access window asking me if I'm sure I want to open the new database (which is normal) but when I click on 'yes', the window closes and I am left with only the original database. Any help would be appreciated! Thank you!
Code:Dim appAccess As Access.ApplicationPrivate Sub Command0_Click() Dim strDB As String Const strConPathToSamples = "U:Daily QueriesSMA" strDB = strConPathToSamples & "Copy of Copy of Desktop SMA.mdb" Set appAccess = _ CreateObject("Access.Application") appAccess.OpenCurrentDatabase strDB appAccess.DoCmd.OpenForm "ItWorks"End Sub
This database is in an unexpected state: Microsoft Office Acess can't open it.. This database has been converted from a prior version by DAO. I can not open the database to get at my tables... Help please as I am locked out of my data..
I have a .mdb file that was created with Access 2000. Before I upgraded to 2003, I opened the file source by holding down 'shift' and double clicking the file. Now when I do that, it runs the application. How can I open the source file again.
Hello. I haven't seen this before with Access; I've searched the forum and haven't found anything yet...
I have an Access database that was being used by about 9 different people. Everything was going along okay, but one day it became read-only for no reason. Once everyone got out of the DB it said it needed repairing. So with only one person in I ran the repair, but the horror-inducing message "The Microsoft Jet database engine stopped the process because you and another user are attempting to change the same data at the same time." appears and when I click "OK" on the message nothing happens whatsoever.
Luckily backups existed, but some data was lost. Is there anyway to run a repair on the database that won't open? Or is it a lost cause?
I need to open an application when user clicks a command button...From this forum I have learnt that I can use SHELL command..but when I use this command to open an application, it opens a new instance of the application everytime...Can I bring the application to the foreground if it was already open?
For some reason Access will not allow me to open any mdb files. When i click on the file to open Microsoft opens the install wizard for office 2000 and asks for disc 2. If i press ok its says DATA2.msi is missing.
However if i open access through the Programs menu and then go and search for the mdb file i can open it with no problems.
My question is how to solve this problem as i have to copy give someone a copy of one of my databases and i don't want to pass on any bugs etc... ???
I have installed Office Pro 2003 on a computer that we use as a server. The product was installed for about 2+ years and worked great. Recently we installed a trial version of office 2007 pro to check compatibility with our system.
That has resulted in the 2003 programs acting strangely. Ultimately, we uninstalled 2007 and 2003. Upon reinstalling 2003, everything works great - except for Access!
Running the MSAccess executible simply results in a brief hour glass and then nothing. No processes even register in the Task Manager.
Is it possible? I want a link that can be put in a mail (to someone in our network) and clicked. It should open Access on a specific database and I should be able to use parameters (like /cmd and /wrkgrp). I'm lost... :confused:
I have a user who is having trouble opening a database he created. Here is his description. I am having an issue with Access that has occurred today and once several weeks ago.
First, I build a complex database for Safeway report. It functions correctly, I can access it from excel.
Problem, I go to update or modify the databases, Access gives me the macro message which I override.
The access database window will not open, no error appears, just a blank access screen with tool bars above. I have tempted to do a compact and repair of the database which did not help.
Microsoft Online help says the issue can be cause by old Anti Virus Software.
The database will permit excel to pull data from it. Does anybody have an answer.
I have a word doc which i can open from Access but i need advice on something i would like to try out.
I have a form with a patients name and i can scroll through the table through here(on the form using nav buttons) as well and see other patients information. What i'm trying to do is according to whoever is on the form when they click on the button to open the word doc i want the patients name to appear on the word doc.
I guess it's like a Mail merge but i want the data to be pulled from the form like the patients name and address and i want this information to go onto the Word Doc. Any ideas on how to do this.
I've inherited a database and I need to export the data to a new program. I can access the DB through a front-end program, but it doesn’t give an option to export the data. I have a username/password for the program, but I can’t open the DB in access. I can't even get to the point of entering a password. The program is 8 years old and the company has been acquired by another company. I tried contacting the new company and they’ve never heard of the version that I have. I’ve even tried contacting a supervisor.
On opening the db immediately gives the error:
“You do not have the necessary permissions to use the ‘C:.....mdb’ object. Have your system administrator or the person who created this object establish the appropriate permissions for you.”
I’ve tried the following with no luck:
1. Create a shortcut to use an alternate mdw file. "C:XXXMSACCESS.EXE" "C:XXXdata.mdb" /WRKGRP "C:XXXSystem.mdw" 2. Holding down the shift key while opening the file 3. Compact and repair 4. Converting it to prior version 5. Creating a new database and importing all objects
Is there a way to "read" the db file to see if there is a valid user name?
I found the following suggestion, but have no idea how to do it:
http://www.vba-programmer.com/Access_Code/List_Groups_Users.txt and this http://www.vba-programmer.com/Access_Code/Security_Listing_Permissions.txt and try the .mdw files again, using the users(and/or groups) that have permission
If it's still not working?, there might be a way to jerry these http://www.vba-programmer.com/Access_Code/Security_User_to_Group.txt http://www.vba-programmer.com/Access_Code/Security_Group_Account.txt http://www.vba-programmer.com/Access_Code/Security_User_Account.txt
I'm not a programmer so if anyone has any easy solutions (or even better a sample!) I’d greatly appreciate the help!
I am trying to open a DBF file in VBA, I get the an error: Run-Time error '91': Object variable or With block variable not set
here is my code: '-------------------------------------------------------------' Dim oConn As ADODB.Connection OConn.open "Driver={Microsoft Visual FoxPro" & _ "Driver};SourceType=DBF;SourceDB=c:Mine 01;Exclus ive=No" '-------------------------------------------------------------' I tried the following code as well, but it gave the same error : '-------------------------------------------------------------' Dim oConn As ADODB.Connection With oConn .Provider = "Driver={Microsoft Visual FoxPro Driver}" .ConnectionString = "SourceType=DBF;SourceDB=c:ME 01;Exclusive=No" .Open End With '-------------------------------------------------------------'
Any ideas?
I need to open the DBF Files in the code using a connection string or any other method available through code.
I have a database that has a form open on a start-up. I recently changed the code that went with the module. Added an another parameter to a SQL statement that populates the values on the opening menu.
The database opens normally if I have access open already. However if I am starting up access and the db at the same time, I get what would appear to be an error, only there is no message. The VB code pops open and points to the statement:
Set dbs = CurrentDb ()
I made sure all breakpoints were clear, so it's like an error-less error. I then click on the continue arrow and the database completes opening.
What is the simplest (script) way of opening a .mdb file from a simple VB appliaction that I have made i.e by clicking a command button that says "Click this button to open XXX.mdb"
Does anyone know where I can find a sample db that will let the user do the following:
Selected a file from their computer and upload to a the same folder as the db?
I am building an Investigation database. This function will allow the user to attach file to an investigation. (the files will be stored in a folder and logged on a table)