Open PDF From Access
May 23, 2007
Very simple one here....
I have a button and simply want to open a PDF file when it is clicked.
I am trying this code and getting an error on the third line
Is this expecting a module or something...
Little confused right now..
CODE:
Dim stAppName As String
stAppName = "F:DATA_FROM_OLD_W_DRIVE_EXTRASPACE2007_MG_BaseMa p_8x11_withSections.pdf"
Call Shell(stAppName, 1)
View Replies
ADVERTISEMENT
Aug 7, 2013
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?
View 2 Replies
View Related
Jul 23, 2014
Can I for instance while my db is open, open it in design mode from my form via code?
View 3 Replies
View Related
Mar 29, 2007
I already have this working by means of:
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? :)
Thanks!
View 3 Replies
View Related
Apr 18, 2006
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?
Thanks for your help. :confused:
View 8 Replies
View Related
Feb 12, 2007
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?
View 2 Replies
View Related
Jul 29, 2005
How do you open a second access database? Without using a hpyerlink.
View 1 Replies
View Related
Mar 20, 2007
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
View 1 Replies
View Related
Feb 6, 2005
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..
View 2 Replies
View Related
Jul 16, 2005
Hi,
We have an old SQL server here which has died a horrible death and I need to get the data it contains out!
I have the .MDF files etc but I cannot seem to open them or import them in microsoft access.
I dont need to do anything flashy with it, just look at the tables!
Can anyone help?
Thanks
:)
View 14 Replies
View Related
Oct 6, 2005
I am not an experienced Access developer.
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.
Thanks
Anthony
View 1 Replies
View Related
Nov 3, 2005
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?
Thank you! :D
View 3 Replies
View Related
Nov 30, 2005
Hi, I wish to open a folder/directory (not a file) using the onclick event of a cmdButton. Any ideas out there?
Robb:D
View 1 Replies
View Related
Jan 3, 2006
We've got a client that runs two access 97 based databases on their network. up until recently both databases worked
fine on all workstations (all XP Pro).
About 3 weeks ago they called me to report that one of the databases would not load on 3 workstations. It opened
fine on all the others. I checked out the permissions on the database (which is stored centrally on the server) and
everyone had full control.
Within the last week they have added two new xp pro workstations to the domain - neither of which can access the
database in question. they can access the other database no problem - as can all the other workstations.
The occurs as follows:
1. Double click on the icon for the database
2. access 97 loads but does not load the database's interface - instead it opens an empty version of access (with
file menu etc at the top)
3. no specific error messages at all.
4. close access and the standard xp program crash message appears (see screenshots below)
As mentioned above, other workstations can open the database fine.
the only thing that has changed on the network is the installation of some server and workstation based production
software - we have not yet consulted with the company that installed this - we felt that if it was this software
causing the problem then all workstations would be suffering. we wil have to consult with them once we've exhausted
all the possibilities.
Thanks in advance for any advice
http://www.techresource.co.uk/error1.jpg
http://www.techresource.co.uk/error2.jpg
View 5 Replies
View Related
Mar 14, 2006
Hi all..
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?
Thanks in advance.
View 2 Replies
View Related
Feb 6, 2007
Hello
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... ???
Help!
View 5 Replies
View Related
Feb 24, 2007
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.
We have repaired, installed all updates, etc...
Any help would be greatly appreciated!
View 4 Replies
View Related
Jun 6, 2007
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:
View 7 Replies
View Related
Jul 13, 2007
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.
View 1 Replies
View Related
Sep 20, 2004
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.
Access 2003 and Word 2003.
Thanks in advance,
Skiball
View 4 Replies
View Related
Dec 29, 2004
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!
Thanks in advance!!
Joe
View 3 Replies
View Related
Oct 24, 2004
Hi All,
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.
Thanx
NoFriends
View 2 Replies
View Related
Oct 21, 2005
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.
Has anyone experienced this problem?
Thanks,
Beagles
View 3 Replies
View Related
Sep 26, 2006
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"
View 3 Replies
View Related
Apr 6, 2006
Hi all,
I want to open a form everytime MS Access loads this DB. Can pls guide me how it shld be done? Thks
FT :)
View 3 Replies
View Related
Dec 10, 2005
Good Afternoon,
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)
Any help would be great.
Thanks,
Bones
View 2 Replies
View Related