Access Macro / VBA To Load Up A PDF

Jan 23, 2015

I have 1900+ records, of where each record is represents a PDF Document in my folders.Each document in my folders is named in the same format "2014-001a" for example. This is the combination of two fields in my Access Database - Document Number and Current Revision.

I am looking for some Macro/VBA where I can put the same command on every records form, that will then recognise the Document Number and Current Revision of that record, and then "On Click" able to directly load up that Pdf.

View Replies


ADVERTISEMENT

Access Won't Load Query When Trying To View

Nov 25, 2011

I'm currently using access to try and link together a number of different databases into one. These databases are exported from an internal system we use and outputs in Excel format.

When these export there is one large database which has about 25 columns and about 3000 rows. The other information that exports are much smaller databases which link to the rows of information in the larger database and for a mail merge to work I need them all to be merged in single rows.

I've linked the main database with all of the separate smaller databases in Access so that I can run the query to combine them all together. However, when I try and run this query or view it Access appears to be loading but never does actually load. I assume it's timing out. I left it running overnight and the problem still persisted.

I assume it's a RAM issue, or maybe disk space or hard drive. The file size of the Access project is about 17mb, so not ridiculously big, but the computer I am using is quite outdated. Is the query likely to work with a better computer, or does Access have certain limitations for larger queries? With all the rows and columns merged with the separate database there is likely to be 3000 rows and about 100 columns. Is this too large for Access to run?

View 5 Replies View Related

Load Form On Startup In Access 2007

Nov 27, 2006

Hello,

Sorry if this is a really dumb question - I have just started using Access and I couldn't find the answer to this doing a forum search.

I have made a database consisting of a table and a form. All I want to do is get the form to appear automatically when the database is opened. I am using Access 2007.

Many thanks,

Sammy

View 14 Replies View Related

I Can't Load A Access 2000 DB With ACCESS 97...

Jan 26, 2005

How do I do it so I can load it?

Thanks

View 2 Replies View Related

Using BULK INSERT To Load A Text File To MS Access

Aug 2, 2006

Hi All
I hope someone in this forum can help me with this databse issue:
I want to load text file to .mdb MS access file.
I understand that BULK INSERT is possible only when using SQL Server database - not MS Access like I do.
Can someone advice what can be done ?
Can you think of an alternate solution, which is also effective (not inserting each record one by one) ?
BTW - I'm using ADO on visual studio 6 in order to access the database (not ADO.NET).

Thanks

View 1 Replies View Related

How To Auto Load(on Start) A Form In Access 2000?

Jun 17, 2005

Hi guys. I have some forms in my access database and i want load one of it automatically
when i double click on my access.mdb . I be happy if some one teach me how i can do that.Thanks

View 2 Replies View Related

Forms :: Passing Value To Combobox On Load? (Access 2010)

Feb 18, 2015

I have a form design where to enter a new "system" (what we call a new group of members) you have to specify the representative (the member that will represent the system).

If the system is new AND the representative is new, then both need to be entered. Typically this will be done through the "New System" form that has a combo box for you to choose the representative (but the representative won't be there!). If the representative is new as well, then the user clicks "Add New Rep" which is located next to the combo box.

This is where things get tricky, I'd like to use only 1 form to load a new rep. My idea was to use an openarg on the docmd.openform method that specifies what the control should be.

Code:
DoCmd.OpenForm "RepresentativeAddNew_Form", , , , , , "System_ID|" & Me.System_ID

That is the code that is called when the user click "Add new rep" and in the on load event I have this code:

Code:
'Use this version if the ID is text
Dim x As Variant
Dim strControl As String
Dim strID As Long
'If parameters exist, use them

[Code] ....

My goal was to pass the value to the combobox and turn it off, that way they can't change anything about it. This was nice because if the openargs is null (there were none passed) then the combo box would be enabled and the user could select the school that way.

But this doesn't work, for some reason, the combo box has NOTHING done to it (I have the control name correct).

Is this due to the way comboboxes work? Or am I missing something?

I should point out that the on-load event was not my idea, I found that online but makes perfect sense. I was trying something similar but was trying to use global variables because I wasn't aware that OpenArgs was a valid control!

View 9 Replies View Related

Modules & VBA :: Load Specific Email Items To Access Table

Jul 8, 2014

In my Access app, I need to be able to retrieve a specific email by date/time, then take the Subject, the Date received and body of that email and save it to a column in a table.how to do this in Access VBA?

View 1 Replies View Related

General :: Normalize Data From Spreadsheet Prior To Load To Access?

Dec 17, 2013

I have a large spreadsheet I need as the basis for an Access database.

The spreadsheet contains... Company Number, Name, Address, etc...

The Company number is consistant and always the same..

However the Name and address is different... eg LTD v Limited, ABC House v 34 High Street etc....

how I can prepare the data and get into access?

View 3 Replies View Related

Modules & VBA :: Birthday Remainder On Access Form Load Event

Apr 26, 2015

I would like to have a birthday remainder on access form load event VBA...

I have tblEmp with 2 fields,

Name DOB
A 22/04/1977
B 25/03/1965
C 17/08/1985

I would like to compare Date and month with my system date to show in the message box "Mr. A Birthday Today" on the Form load event...

View 12 Replies View Related

Form Doesn't Filter On Load If User Has Restricted Access

Jul 27, 2012

I have a report that has a link to open a a form "ProjectDetailsActive" to a specific record ID from the report. It works.

I have 3 subsets of users who have restricted access to the form "Project Details Active". By that I mean that when they open this form, it hides and rearranges some tabs, and disables certain controls. If a user from one of these 3 subsets tries to open the link to a specific record in the form, it does not work. The form opens to the first record available instead of the selected record. This is only a problem for these 3 user groups. For users who do not fall into these 3 groups, the filter works.

This is the only code in the form that does the restriction, but I don't know where the process is going wrong.

Code:
Private Sub Form_Current()
LoadBudgetPage
CancelRsn.Enabled = False
'detect number of line items for current project
Me.lblOrderCount.Caption = GetNumRecords & " line items for this project."

[code].....

View 8 Replies View Related

Split Access Database Doesn't Load Records In Form To Edit

Aug 23, 2011

I have an Access 2010 database that I have split. In the database I have a couple tables, forms and two reports. I have entered some data into one of the tables, but when I go to edit the data in the form the next time, there is no data (though I have verified that there is data in the table). Also, there are two reports that can pull the data without any problem.

Why the data wouldn't show up in the form.

View 3 Replies View Related

Modules & VBA :: Write A More Complex Macro That Will Start Another Macro At Preset Time

Dec 8, 2013

I am trying to write a more complex macro that will start another macro at a preset time, however I am getting stopped at the first hurdle - getting a macro to run another macro.

Here is the code i am using at the moment, all I want to do currently is click the first button, then get the second macro to execute. But no luck, getting error 2157 "cannot find the procedure"

Code:
Private Sub Command3_Click()
MsgBox "1st macro running", vbExclamation, "Note"
Application.Run "teststart1"
' Application.OnTime TimeValue("19:55:00"), "teststart1"

[code]....

View 1 Replies View Related

Macro In Access

Dec 3, 2007

Hi,

Task: to extract data from table 1 of a database (tied to form 1) to create a record in another table 2 of the same database (tied to form 2).
Besides, I need to make it simple to use for an end user.
On the form 2 I have a command button that activates macro. Macro makes a query to run and extract data from table 1 and append a table 2.
Now I want the user to see the record on the screen (form 2) that has just been created. For that purpose I add "go to last record" step in the macro.

Problem: that doesn't work. :) For some reason it brings back same record from the middle of the table which is not the last. And what is even more interesting is that it doesn't tie to the record ID on the bottom of the screen (access generated).

Challenge: the record ID field in the table 2 is a primary key auto-numbered field (i know this is not perfect but I am not the one who created the database) and some records have been deleted over time. Might that be connected to that or that is something else?
Thank you!!

View 1 Replies View Related

MS Access - Project Macro

Oct 7, 2005

I have recently made a database and through MS Development Tools have been able to bundle it with Access Runtime. We are using MSDE as a backend and when I install the 'package' created by MS Project on another computer it says that it cannot find the SQL Server database.

This will mean (i believe) I will have to write a macro to reference the external SQL database (MSDE)?

If anyone has knowledge of this or/ and can point me in the right direction it would be appreciated.

Phil

View 3 Replies View Related

Access Cant Find The Macro 'Me.'

Mar 28, 2006

Hello

I am using the code below to populate three fields by selecting the data from one combo box

In the AfterUpdate event of a cmbBox I have entered the code:

Me.[Part Code] = Me.cmbBox.Column(0)
Me.Description = Me.cmbBox.Column(1)
Me.Cost = Me.cmbBox.Column(2)

When I then try to select from the drop down list I get a message sying that the Macro cannot be found. What am I missing?

View 1 Replies View Related

MS Access Macro Problem

Jan 5, 2006

I have a MS Access database which requires that a MS Word document be opened via a macro.

In the Macro design view under the Action tab I have the Macro set to RunApp. Then in the Command Line I have:-

C:Program FilesMicrosoft OfficeOFFICE11WINWORD.EXE C:Documents and SettingsKnightALDesktopDataBase AssignmentLetterhead.doc

When the macro is run I get an error. It begins to open the Letterhead.doc document. Word begins to open but then a messages saying Word experienced an error trying to open the file. With as few suggestions on what to try none of which make any difference.

If I change the Command Line to read:-
C:Program FilesMicrosoft OfficeOFFICE11WINWORD.EXE
Then all is well and a blank Word document opens.

I have tried quite a number of variants in the command line but all give me no joy at all. So can any one tell me please what it is I am doing wrong here. I can even get the macro to open my Spyware program but cannot get a Word document to do its thing.
I have put copies of the document in all sorts of places but still it cannot be detected.

View 7 Replies View Related

Run Excel Macro From MS Access

Sep 11, 2006

man am i stuck.......here goes. i am using a mdb that i upload a weekly excel file to build my weekly report.

the weekly excel file is called Subledger Current.xls

before i upload the excel file i run a macro that is stored in an a different file called Converter.xls on my c drive (C:Converter.xls). the macro name is "Converter_Macro". also, the workbook is hidden, therefore, when i open this ms excel file i have to go to window and unhide to view the workbook. after that, i have verified that the macro is part of the list under Tool Macro Macros.

With that said, can anyone identify my error in my code why the macro is not running. that is, the code does not error out but the macro is not running.

thanks
terry

Code:Private Sub cmdImport_Click()Dim appExcel As Excel.ApplicationSet appExcel = New Excel.ApplicationExcel.Application.Workbooks.Open "C:Subledger Current.xls"Excel.Application.Visible = False'this is where i call another sub to open the file containing the macro and attempt to run itCall Sub xlAddin()'i have addition code here to finish out the prodecure which is function properly when i step through manually.End SubSub xlAddin() Dim objExcel As Excel.Application Set objExcel = CreateObject("Excel.Application") objExcel.Workbooks.Open "C:Converter.xls" ' Runs the macro objExcel.Workbooks("Converter.xls").RunAutoMacros (xlAutoOpen) objExcel.Application.Run (Converter_Macro) objExcel.Quit Set objExcel = NothingEnd Sub

View 2 Replies View Related

Access Macro - ECHO Yes / No ???

Oct 20, 2006

As I can't seem to find another way to make Access add together two seperate columns of numbers (i.e in Excell it would be A2+B2 = ) I've created a macro of some 42 lines long that copies information from a form into a table, from where it's summed in a query and the results shown on another form. The macro "Steps" through the process without a problem and will rune through the process with "ECHO - YES" selected. However, if I select "ECHO - NO" the screen freezes (although from the "Bong" it appears the macro has finished running) with the tool bars at the top missing and only the initial form infront of the Database window, on display. I've left the computer (actually a couple of computers - a laptop, a high spec desk top and the works' networked computer) for up to 15 mins without anything changing. Once (I think) I was able to shut down the database using the normal windows red / white X button in the top corner of the programme screen, otherwise I've had to Ctl / Alt / Del to end the programme. The other strange thing seems to be that I can open and work other programmes while the Access screen is frozen so it looks as if the computer isn't freezing (The task manager CPU useage bar is only up to 15 - 30 % as well)
Any ideas what may be going wrong or how I can get round this? I'd perfer to be able to run the programme in the "ECHO - NO" state as one of the guys I'm building it for is blind and has his computer talking to him. It makes a hell of a racket as the macro runs in "ECHO - YES"!!!!!!

View 1 Replies View Related

How To Run Access Macro In Certain Times

Mar 19, 2013

I have my data updated 3 certain times in a day. So i dont want to bother opening the same access 3 times a day. That access can be opened whole day no problem for me. So, how to run macros automatically in a time which I determine before ?

View 6 Replies View Related

RunApp Macro In Access 2007

Jun 22, 2007

In access 2003 their is a RunApp macro to run applications from a macro. In access 2007 (at least my copy) it does not show up. Is it my copy or has it been taken out of this version.

View 3 Replies View Related

[ACCESS 2007] Use VBA Code Instead Of A Macro

Jul 26, 2007

Hello,

When I add a butten using the wizard Access 2007 adds a macro instead of vba code.
How can I get the good old VBA code???

Thanks for your help in advance

View 11 Replies View Related

Access Macro To Import Sql Table

Nov 11, 2006

Let me have an example of an Access macro importing Sql table to Access table

View 1 Replies View Related

Macro - To Perform Function Outside Of Access

Dec 20, 2004

Is it possible to create a macro in Access that opens up a word document from a shared drive? Within Access, I don't see a macro available to do this.

View 1 Replies View Related

Running An Excel Macro From Access

Jun 14, 2004

Hi all,

I was hoping that someone could tell me if it is possible to run an Excel macro from an Access database. I am importing 3 Excel worksheets into Access and this macro needs to be run on all 3 evertime that this file is imported by the user (twice a week). If this can be done could someone please tell me how ??

View 14 Replies View Related

Run A Macro In Excel From Inside Access?

Sep 2, 2012

I've been opening comma delimited files in Access, used an Excel function to re-save those files in .xls which Access readily understands, then opening said files and running a query on them to organize them. Now the file needs to go to Excel where it is entered into a worksheet with a certain heading.

Problem is when opening the .xls converted file in Excel, no macros show up. If I open a blank worksheet in Excel my macro shows up. I lowered the security settings to the most basic level in Excel. How do I make the macro show up in the file opened in Excel through the Access VBA, so I can run it?

View 14 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved