Modules & VBA :: Suspending Code Until Outside Application Finished

Nov 5, 2014

I have a Subroutine that is using CutePDF writer to create a PDF from a report, then attach it to a new message in outlook. The problem is the code runs too fast and it's looking for the file to attach before the file is created.

I'm getting
Run-time error '-2147024894 (80070002)':
Cannot find this file. Verify the path and file name are correct.

Yes, I know why I am getting the error, and yes I could use a loop timer, except it may be 5 seconds before the person finally clicks OK in CutePDF dialogue box, it may be 5 minutes or it may be 5 hours.

View Replies


ADVERTISEMENT

My Code To Quit The Application Has A Bug!

May 19, 2005

Hi I have succsefully used the code suggested on theis excellent forum to boot user from the db to repair it. It is FE/BE set up and the ONTIMER on the login form is used to chuck people off over the network.

My ug is: I like to give people the waring before I chuck them off, but sometimes when they are using another application with the db running in the background they dont get the message, therefore dont click ok so my Code wont carry on and Quit application when I want it to.

The code is trapped in

MsgBox "Please finish what your doin, as the db will shut down", vbinformation

Is there any way I can make my code bypass this if they user hasnt clicked ok?

Many thanks in advance

View 1 Replies View Related

Activation Code For My Application

Jan 25, 2006

I have made an application based in access, I want to put a supscription on it so every year you need to
enter an access code like you do when you install software, so an activation key, but i need an expiry
on it, so i can show demos that last a month or an actual copy but you need to renew every year!
Can any one help?

View 2 Replies View Related

Suspending A User

Sep 1, 2006

I am trying to brainstorm and idea that I have to better improve my companies database security. Right now all we have is a passworded backend and user levels for each person who uses the database. 10 - default; 50 - supervisor; 100 - developer.

I am wanting to create a function, that looks into my User Table and checks today's date to when they last logged in, and if they have not logged in say in 30 days it will disable their ID and they would have to contact me in order to enable it.

I am looking to see if anyone at this forum knows of any good examples so that I can get this idea working.

Thanks in advance.

View 2 Replies View Related

Referring To The Application Icon Using Code

Jan 2, 2008

Hello all...Happy New Year!!

I have obtained some VB code shown below which adds an icon to the windows task bar as I intend to put some additional code behind this that displays messages near the clock when something happens in the database.
The problem I have is that the code does add an icon but the icon is literally blank. i.e. it makes an additional icon space but does not display any picture.
The code is not actually for VBA so I need to tweak it. I am struggling with telling it which icon to display. Does anyone know how to refer to the application icon using code??

The code I am working on is: (there is also a module but I will post this if you need it.)
-------------------------------

Private Sub AddTrayIcon()

Dim nid As NOTIFYICONDATA

' nid.cdSize is always Len(nid)
nid.cbSize = Len(nid)
' Parent window - this is the window that will process the icon events
nid.hWnd = frmSystray.hWnd
' Icon identifier
nid.uID = 0
' We want to receive messages, show the icon and have a tooltip
nid.uFlags = NIF_MESSAGE Or NIF_ICON Or NIF_TIP
' The message we will receive on an icon event
nid.uCallbackMessage = 1024
' The icon to display
nid.hIcon = frmSystray.Icon
' Our tooltip
nid.szTip = "Always terminate the tooltip with vbNullChar" & vbNullChar

' Add the icon to the System Tray
Shell_NotifyIconA NIM_ADD, nid

' Prevent further adding
cmdAddIcon.Enabled = False
End Sub

Private Sub cmdAddIcon_Click()
AddTrayIcon
End Sub

-------------------------


This is the code that is the problem. I dont think VBA has this function so I need to tell it where to find the .ico file I use for my database.
Thanks folks.

View 2 Replies View Related

How Can I Excute Code When The User End The MS Application By Alt+Ctrl+Delete

Aug 22, 2007

Some times, the system become stuck, which forces the user to end the program using Windows Alt+Ctrl+Delete. I have MS Access code which I want to execute when the user made the 'End Program' event using the Alt+Ctrl+Delete.

Thanks,

View 12 Replies View Related

Finished Loading

May 9, 2005

i have a form, in which two of the controls on the form, are unbound image controls, which display linked images. Now i have a button, which when both images have been displayed successfully, i would like to set the enabled property of this button to true.

How can i detect, that an image has ended up linking and is now fully displayed ?

Thank You

View 1 Replies View Related

My Database Is Nearly Finished!!! Looking For A Few Answers 8)

Feb 7, 2007

Im nearly finished creating my first real production database, its pretty exciting! Theres a few things that I need to accomplish to consider it 100% working and im wondering if anyone has any input on the following matters:

1) Users import their data via an excel spreadsheet. Its all done behind the scenes. One routine pulls in information about servers from an excel spreadsheet and after formatting it via queries, puts it in the main table. The spreadsheet in question starts with the servername cell. On the spreadsheet, the first row contains the name of the server, but the second and subsequent rows contain blank space in the servername column, but imply that the rest of the information is for the various connections associated with that server listed above... IE:

Column "ServerName"
Row1: Server1 IP address Switch Etc
Row2: <blank> IP address Switch Etc
Row3: Server2 IP address Switch Etc
Row4: <blank> IP address Switch Etc
Row5: <blank> IP address Switch Etc
Row6: Server3 IP address Switch Etc
and so on and so on...

What im wondering, is if its possible to fill in the blank spots with the cell above the records that start blank? (to populate the record with its respective server). Any input on methods to accomplish this would be appreciated.

2) Is there a way to attach code to the different buttons on the record selector? For tracking purposes, everything that my users do is stored in a seperate table. The only thing I cant seem to track is when users enter a record via the main data entry form. Automated tasks are no problem, but I cant seem to find a method to attach code to, say, the next record button on the default record selector.

3) I have a few queries that collectively import data from excel. When I do this, I remove confirmation messages so that users dont have to click through a sea of 'OK's. Im wondering if theres a way to count how many records get pulled in from an import, seperate which were good and which were bad, and simply pop up a message box stating that X records were imported succesfully, and X were not due to whatever reason.

4) Is there a way to sort text as if it were a number? I have a few fields that need to be text format, but contain numbers most of the time. The sorts always put 1 above 10, 9, 8, 7, etc, and id like to either find a way to make a query that changes all single digit numbers to double digit numbers or simply sort it in a numerical format.

5) What considerations should I take into account when it comes to the amount of data that access 2003 databases can effectively store and use? Ive heard that access can effectively handle 32000 records or something to that effect. Over that, what will I be dealing with? Slow performance? A complete roadblock?

I realize that there are a lot of questions here, and by no means wish to have my work done for me. Id very greatly appreciate any feedback that anyone wishes to give 8) Even if you dont want to code routines for me, thats fine.. I actually enjoy figuring this stuff out on my own, and a simple nudge in the right direction would suffice.

Thank you so very much!

View 2 Replies View Related

Finished Product Is Also A Raw Material

Feb 23, 2007

I'm new to Access (2002) and have been trying to learn by reading books, posts, forums and practicing with models. I've set up a database for inventory, primarily to track the cost of goods sold as raw material costs change from month to month. So far I have tables for raw materials, container sizes, suppliers, and finished products. But I have a problem - in some cases a finished product is also a raw material, so cannot appear in both tables. (Let's say we make cookies and we make ice cream, and we also make ice cream with cookies on top as a third/separate finished product!) Should cookies have two records ('CookieFinished' and 'CookieRM') and can they be linked together so cost is determined before it's part of another? Is there a better way? Thanks in advance!

View 9 Replies View Related

Pls Need Urgent HELP : Finished Work!

Jan 6, 2008

Hello everyone,

I've competed my Access Application...Finally! I spent 3 months developing it!
Now I've finished it! I want to put it in work.
I need someone to guide me step by step (Sorry I'm really get tired from searching :( ) how can I do to make my application working in a small network (5 computers) ???
I want that only 1 user (master) get the entire data; for exemple all the Orders placed from other users...
I searched for Split but I did't figure out how to create backend frontend?? and how to make difference between Front End Master and BackEnd?

Please Any guideness will be Highly appreciated!!

Best Regards,

View 5 Replies View Related

Finished Acces Db. How Should I Set Up For Users?

Feb 28, 2008

I have completed a db and am satisfied with the structure and forms. The object window is hidden when the database is opened, and the main entry form automatically opens for the user. This db will be in a network folder and several users will have access to it. I want people to be able to enter data and run reports, but not make any changes to the database itself, or accidentally delete the database file or some other change to the structure. What is the proper way to set up the folder rights and anything else associated with the previous question?

Thanks.

View 1 Replies View Related

Form Does Not Load Until Loop Has Finished

Jan 3, 2008

Hi

I have created a small form that hold a cube of 9 boxes on it. The idea is that it will act as a small icon that indicates the system is loading. (Purely cosmetic)

I have triggered the boxes to change colour on a loop when the form loads but the problem is that the loop function is being carried out before the form actually loads. How do I get the form to display first and then carry out the loops to change the colour of the shapes?

Thanks all...

View 5 Replies View Related

Opening Access Application Like Desk Application Done With Java Or Vb

Jan 5, 2014

it is possible to Open access application like desk application done with java or vb, or install access application as exe or similar methods. My requirements is to giving a access application to customer with data base for printing an invoice. when he running the aplication he can see access open and tables, queries forms left hand. how to hide these thing ?

View 4 Replies View Related

Forms :: Date And Time Product Will Be Finished

Aug 19, 2013

If I had a textbox [txtTotalDay] which its days/Time was in decimals and a start textbox [txtStartDate] and a start time and number of shifts the product can run how can I accomplish this?

Example:

[txtTotalDay] = 3.50
[txtStartDate] = 8/19/13
[txtStartTime] = 6am
[txtNumOfShiftDay] = 2

ANSWER : The time/date it would finish would be 8/21/13 @ 4:00pm

View 6 Replies View Related

Modules & VBA :: Data Entry Application

Oct 1, 2013

I am making a database, where 10 to 20 users will be entering data. I have queries

1. I am planning to create a form with which user will be directly entering in the table, will that b right?
2. If 2 or more users will open form its own side does they all will be entering in same row number?
3. What will be the best of these, by insert query or directly to form?

View 1 Replies View Related

Modules & VBA :: Set / Change Application Title

Jul 27, 2015

I can change the application title using the following only if the Application Title is blank. If it is not blank then it does not change.

Code:
Dim db As Database
Set db = CurrentDb()
Dim newtitle
newtitle = "qwerty"
Set newtitle = db.CreateProperty("AppTitle", dbText, strNewTitle)
db.Properties.Append newtitle
Application.RefreshTitleBar

View 2 Replies View Related

Modules & VBA :: Export Different Objects From Another Ms Access Application?

Feb 10, 2015

I want to export different objects (i.e. modules, reports,tables, queries...) from another ms access application. How can I list the objects so I can pick from them and then import them. I know ms access has a wizard and I am looking to do the same but a little different because I have an application that I want to filter my objects by a criteria.

View 3 Replies View Related

Modules & VBA :: Application Settings In Access Runtime

Oct 23, 2013

In a startup-form I have following options to avoid annoying system messages in an ACCESS 2010 RUNTIME!! (.accdr)

Application.SetOption "Confirm Action Queries", 0
Application.SetOption "Confirm Document Deletions", 0
Application.SetOption "Confirm Record Changes", 0

But they do not work, there are still messages when deleting a record from an endless form by pressing "delete". I don't want to add a button. Docmd. Setwarning false in every form!

View 1 Replies View Related

Modules & VBA :: Hiding Access Application - Min Max Buttons Gone

Aug 8, 2014

I did a search and found this thread, and the only problem i encounter is the min max buttons are gone though it was set up as both enable, how to show those buttons.

[URL] ......

View 1 Replies View Related

Modules & VBA :: Set Focus Back To Access Application

Nov 25, 2013

In my VBA I open the default browser using the following code.

Application.FollowHyperlink "http://www.google.com", , False

Right after opening the browser I would like Focus to go back to Access.

How can I do this?

View 4 Replies View Related

Modules & VBA :: Close All PowerPoint Files From Access Application

Apr 29, 2015

i want that if any powerpoint application is open after closing my access app all of these powerpoint files will be closed. i found this code for excel file and i changed it for powerpoint application. but i have an error message in this pink line?

error 438: object doesn't support this property or method

Code:

Public Function test()
Dim oApp As Object
Dim workbook1 As Object

[Code].....

View 2 Replies View Related

Modules & VBA :: Method Import Xml Of Object Application Failed

Dec 10, 2013

I am attempting to pull data from an XML file via VBA without doing the import on external data. I created a blank table called "tblHolding". In theory, my code works the way i want which is: User clicks button, file explorer opens for them to select the file, imports data to "tblHolding", and msg box saying complete.

It runs through the code but doesn't import. It errors at the below code. Also, where do i reference the table so I can append the data.Fails saying method importxml of object application failed

Code:
Application.ImportXML strPath & strFileList(intFile), 2

Code:
Private Sub Command234_Click()
Dim strFile As String 'Filename
Dim strFileList() As String 'File Array
Dim intFile As Integer 'File Number
Dim strPath As String ' Path to file folder
Dim f As Object

[code]...

View 5 Replies View Related

Modules & VBA :: Application Quit Doesn't Work On Network Users

May 26, 2014

My database is used by a few users on a shared drive in "read-only" mode so they can't change any data.I set a scheduled task to copy an updated version of the database (which I edit) every morning.

The problem is that when the users forget to close the database file I can't overwrite it.For this purpose I wrote a small code that quits the application at 00:00 using Application.Quit.The code WORKS when I test it on my computer, but every morning when I try to open the file I see that it is opened by another user since I also open it as "read-only" - meaning the code didn't work...getting the code to work properly OR get a better solution to be able to overwrite the file even though it's opened by other users.

View 10 Replies View Related

Modules & VBA :: Main Form Load Event Firing On Application Quit?

Aug 6, 2013

I'm developing in Access 2007 and created a runtime version.

When the user clicks the X to close the runtime application, the main form's Load event fires. Any clues as to why this might be? Some of the code is based on other forms that do close, so of course errors start flying. Note, this is only in the runtime version; the accdb file works just fine.

My current workaround is to put the offending code into the forms On Current event, which I'm able to do in this context.

Is it wrong to think that a forms On_Load event shouldn't be firing when the application is closing?

View 1 Replies View Related

Is It Possible To Integrate MS Access Application To A Web Application??!!

Jun 11, 2007

We have an extensive reporting application in Access and would like it to be available through a web application. I've went down the road of migrating this application to SQL to use SQL Reporting Services; this is a good tool but I am wondering if MS Access has an easier solution for me other than migration to SQL.

I'm looking for a solution that will make these reports available over the web for many users. Price tag is a consideration...need to know if there is any.

Please help...thanks in advance for any thoughts!!!!

View 2 Replies View Related

Modules & VBA :: Create Single Master Control Program That Runs Each Individual Application

Dec 23, 2014

I have a series of 7 separate Access 2010 programs that are designed to run under the control of a scheduler, and they must always finish. Errors are trapped and logged but mustn't stop the processes completing.

What I'm trying to do now is to create a single master control program that runs each individual application, one after the other, in order. And each individual app cannot start until the previous one is finished.how to call a separate Access program and know when it has finished.

View 2 Replies View Related







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