FileDialog(msoFileDialogFolderPicker) Crashing Runtime Application

Jan 31, 2006

I'm attaching the code for a function that's attached to a button that allows the users to export data from a form to the directory and file of their choice.

This code works when we're just running Access, but we need it to function in runtime, and it just crashes with an entirely uninformative "runtime error" message.

I didn't write this code, but looking at it, it seems to be just a copy of what's in the MS knowledge base about the filedialog function.

I also never write my own applications using runtime (the program we're running this is was contracted for our lab), so I have no idea why this would be failing in runtime but not in Access. Can anyone help?

View Replies


ADVERTISEMENT

MS 2000 Access Application Is Crashing

May 30, 2005

My MS 2000 Access application is crashing and returns a msg something like this: "Your Access application caused an error and Access must be closed"
This occurs only when I execute some forms; always the same forms cause the problem.
Somebody told me to copy the .mdb to another place in my HD and change the names of the forms.
I did it and it always works well!
Any good reason for that?
My app is not yet splited in FE and BE. Splitting would help?

Thanks a lot

View 1 Replies View Related

Runtime For Access Xp Application

Oct 10, 2005

I am developing an application in access xp (2002) and want to distribute it as a runtime application. I do not have the Office xp Developer version and thus need to buy the MS Office Developer. It is still available and if so, where can I buy it? Or can the Visual Studio Tools for the MS Office System make a runtime version from access 2002?
Any help would be appreciated.
Niels

View 1 Replies View Related

Cut/Paste When Application Running Using Access Runtime.

Mar 23, 2006

Hi all..

I have access 2003 and I package my application with Access runtime. Users do not have access installed in their computers.

The problem the users have is, they cannot Copy/Cut/Paste from the textbox controls in the application..The same application when I run using my full version of Access 2003, I can cut/paste...

Is there a way to fix it without having to get full version of access ? or I have to live with it because I use access runtime.

Thanks

View 5 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

Forms :: Application Running In Full Version But Not In Runtime?

Apr 11, 2014

I have a small database application which is split in fe and be. Its running fine and i have been making changes to the front end regularly and replacing the file on server successfully with no problems, But today i edited some forms and reports and afterwards i ran it on a client in access runtime produced the on click event error ( which is on log in form which is a startup form ). Its working fine in full version of access even on the server but couldn't log in because the clicking on login button display the error. See attached image.

View 6 Replies View Related

General :: Application Always Quit In Access Runtime On Every Run-time Error

Mar 24, 2014

I have setup a small application with front/back end in local network. On client machines i have installed access runtime. Although it works fine but it suddenly quit when there is any run time error while working on client machine. Although on server machine ( where full version is running it didn't close the application ).

What i need is an option to not quit the application completely. As i am not expert in coding of try/catch statements I need a simple solution for time being .

View 5 Replies View Related

Can't Get Filedialog To Work For Save As

Jul 13, 2006

Hi,

I was wondering if anyone might be able to help me with this. I was trying to get a filedialog popup windows to show up so that user can enter a filename for saving purpose.

The following is the code i got from Access help but didn't work.
Private Sub CM_openfiledialog_Click()
Dim dlgSaveAs As FileDialog

Set dlgSaveAs = Application.FileDialog( _
FileDialogType:=msoFileDialogSaveAs)

dlgSaveAs.Show

End Sub

I got a compiler error saying "user-defined type not defined". it seems not being able to identify the Filedialog.

Any ideas?

Thank you in advance

View 2 Replies View Related

Modules & VBA :: Open CSV With FileDialog Then Transfer Spreadsheet

Jan 26, 2015

From Here I want it to open the ".csv" that I chose (for some reason it doesn't now), Import to a table (I can do this part). Then export to the same location on the server with a different file name of my choosing and covert to .xlsx.

Dim fdlg As FileDialog: Set fdlg = Application.FileDialog(msoFileDialogFilePicker)
Do
With fdlg
.AllowMultiSelect = False
.Title = "Select File to Import"
.Filters.Clear
.Filters.Add "All Files", "*.*", 1

[Code] ....

View 3 Replies View Related

Modules & VBA :: FileDialog 429 Error On Opening Selected Document

Oct 10, 2013

The following code is throwing a 429 error when opening the selected document (code in red). How do I correct this?

Code:
Dim f As Object
Dim FileName As String
Set fd = Application.FileDialog(1)
Dim FileChosen As Integer
FileChosen = fd.Show

[Code] ....

View 1 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

DB Crashing

Jul 18, 2005

So here's my situation: Tonight I opened the file I was working on this morning (which was in perfectly fine state)...

I opened a form - CRASH!!
I press ALT+F11 to go to the VBA editor - CRASH!!
I open another form - it works fine... So i select a button and tried to edit the action script - CRASH!!
I relinked the backend file - CRASH!!
It seems everying I do makes the darn thing crash. :mad:

I tried compacting/repairing - no luck there. This is not the first time it has happened to me. I forgot how i managed to fix it the first time. Anyone with experience with this? Any suggestions?

I tried opening an older db file, and was able to access the VBA editor for that file. But it crashed again when i tried going back to the bad file.

If i recall correctly, I think this morning, when I closed my access file, I closed the Access Program long before I finally closed the VBA editor (didn't realize it was still around because the taskbar was a bit cluttered). Wonder if that caused it to go hay-wired.

View 3 Replies View Related

Access Keeps Crashing - Help!

May 1, 2005

I don't know if this is caused by Access (2003) itself, or somethign else, such as the JET drivers. Whenever I load up anything in Access it crashes saying I can repair it and restart access... no matter what I load.

Also, it seems other programs that connect to a database only retrieve 'nothing' from the tables and queries. I'm quite confused, any help would be wonderful right now.

Running on Windows XP SP2 with Access2003

View 5 Replies View Related

Database Crashing!

Feb 23, 2006

I've come across a problem with my database, I’ve tried everything I can think of, and I’m still no wiser as to what’s causing the crashes. I hope someone can shed some light on what the problem might be.

I've created a database that uses a switchboard to navigate through the various forms, the switchboard is loaded (using the start up options) most of the database objects are switched off (like display database window), apart from 'allow full menus' and 'allow default shortcut menus'.

This reason I’ve given you the above information is that the error only occurs when the database is loaded through the start up options.
If I open the database bypassing the start-up options this error doesn't occur.

Now to the error:

I have various forms that have a button that will attempt to send an e-mail, its set up that the email doesn't send automatically but allows the user to edit the email before sending.
When the e-mail is created using the code below, and the user decides to cancel sending the email by pressing the 'close' button on the email, the database will lock up.

The first error message I get is:

The sendobject action was cancelled
You used a method of the DoCmd object to carry out an action in visual basic, but then clicked cancelling a dialog box.
For example, you used the close method to close a changed form, then clicked cancel in the dialog box that asks if you want to save the changes you made to the form.

The second message is my error trapping for cancelling the email, and then after that the form loses focus and I can't do anything to the database. It's still running because I have a clock on my form that’s still ticking away.

The only way I can close my database is to 'ctrl alt del' and 'end task' it. When I do this I get another error message saying

You can't exit the database now
If you are running a visual basic module that is using OLE or DDE, you may need to interrupt the module

And then the database closes.
I've noticed the crash only occurs when the 'display database window' option is turned off.
When its on then my error trapping deals with the closing of the email.

Private Sub MailCreditReport_Click()
On Error GoTo Err_MailCreditReport_Click
Dim stDocName As String

If Me.Dirty Then
DoCmd.RunCommand acCmdSaveRecord
Else
End If

stDocName = "rptCreditAuthorisation"
DoCmd.SendObject acReport, stDocName, acFormatRTF, , _
, , , , True, False

Exit Sub

Exit_MailCreditReport_Click:
Call ReportError
Exit Sub

Err_MailCreditReport_Click:

Select Case Err.Number

Case "2501"
MsgBox "User cancelled Sending E-mail(s). Please Resend", vbExclamation, "Sending Stopped"
Exit Sub
Case Else
Resume Exit_MailCreditReport_Click
End Select

End Sub

I've tried various things with the code like DoCmd.CancelEvent, but nothing seems to make any difference.

Any help would be greatly appreciated.

View 11 Replies View Related

Would Like Some Help With Crashing Database

Oct 30, 2007

Anyone,
I posted at the begining of this month with an URGENT post and had a lot of help off some of you guys. My database was corrupting and crashing and I had a lot of help of rural guy and others. By the finish of the two days I had compiled and decompiled my database and lots of other little tricks to try and make it a bit better.

At the end of the two days the database was up and running but I had to delete three of my forms because the VB Script that was attached to them forms would not delete. I managed to get it working but I am now having further problems.

Althought the database is useable without these forms I can not re-create them. I have tried importing them into a new database, compiling them then importing them into the FE, but it still crashes. I have also tried just creating a new form and starting from scratch but it will not let me create a new form from scratch. It runs very slow and still crashes on development. my Back-end is working fine.

Does anyone know of any common errors that may be causing these problems. I am now in discussions with my boss because the only thing I can think of doing is starting my FE front scratch.

Any sugggestions

View 5 Replies View Related

Code Keeps Crashing Access

Feb 15, 2005

on a small scale this code works, but when my inventory table has all of the 2000 records it crashes, any ideas.
I can ftp my database if needed

Code: Dim ColorDim StartPointDim RsItem As DAO.RecordsetDim RsNewItem As DAO.Recordset 'Grab the inventorySet RsItem = CurrentDb.OpenRecordset("select ItemId,Description1,description2,quantityonhand from item")'grab the table that will have the new item and description addedSet RsNewItem = CurrentDb.OpenRecordset("select * from newitems") With RsItem While Not .EOF StartPoint = 1Start:'find out if the last numbers is numeric or notIf IsNumeric(Mid(Right(.Fields!itemid, StartPoint), 1, 1)) = True Then'see if the start point is the last letter or notIf StartPoint = 1 Then 'meaning there is no colour indicated at the end of item Else'add the quantity and the color to the newItem tableColor = Right(.Fields!itemid, StartPoint - 1)RsNewItem.AddNewRsNewItem!Description = .Fields!quantityOnHand & ColorRsNewItem!itemid = .Fields!itemidRsNewItem.UpdateEnd If Else'move the startpoint to the next letter in itemStartPoint = StartPoint + 1GoTo StartEnd If .MoveNextWendEnd With

View 3 Replies View Related

My Database Has Started Crashing! HELP!

Sep 22, 2006

I am a novice database user and I built a small job tracking database for a small construction company. For the last 2 days, Access has become very unstable and I am getting the "Sorry but Access has to close" message shortly after opening. I have tried the "repair and compact" utility but no change and it still crashes. Is there other troubleshooting procedures that I can use or can you recommend someone to do the repair work?

View 1 Replies View Related

Bound Reports Crashing DB

Dec 1, 2007

I've redeveloped my DB so that all forms are unbound. I did this due to a multiuser environemt of 30 or more users.

I left all reports bound because there were fewer than 10 concurrent users running them at any one time.

But... I'm finding the DB crashes when a second user runs the same report concurrently. Maybe its data binding overload?? Would setting the underlying query recordset type to snapshop overcome the problem??

I appreciate any ideas

View 6 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

Access Crashing Upon Import Of CSV Files

Aug 23, 2005

Every time I try to import a CSV file into my Access database it crashes. I've tried repairing it but the repaired database crashes as well. Any ideas on what could cause this?

Thanks.

View 8 Replies View Related

Novell Server Crashing Because Of Access 97

Apr 27, 2007

Hi. I have been fixing up some access 97 programs on the computer systems at my work. The main changes I made was creating a search function using a query behind a form to search the database (no more than only 90,000 records). I am running a novell server. The data tables are in a database on the server. The access program on the desktops have their own access database program that use linked tables to the data tables on the server. The following is my issue:

Apparently, some of the changes I made to the searches caused the server buffer to become full and not flush itself. Anytime I was working on creating the fixes, it seemed to make the server crash. I 'm just wondering if anyone has had a similar problem with access 97 running on a novell server and causing any buffer issues. Any ideas on how to prevent the server from crashing?

View 3 Replies View Related

Access 2000 Crashing When Using Frontend - Help.

Jun 28, 2007

Hi all, 1st post. I'm and Access n00b I'm afraid, so take it easy. I normally use php/mysql, but have been roped in to fixing a broken access database.

I've got an Access database, and a fileserver is holding the data (mdb file), but I've got around 10 machines which access the database thru a frontend (mdb file).

Now, this has been working fine until today, where I am trying to view one table (Orders), and access bombs out. It shuts down instantly with no warnings. It does this on every machine, so I think it is a database problem. I can view the data if I open the standalone data file, but I cannot view the data thru the frontend.

I need to fix this asap... what's causing the crash? I didn't make the front end, but if I could look at the code, I may be able to see where it's failing.

View 3 Replies View Related

Modules & VBA :: Build Event - Access Crashing

Jul 9, 2014

I am trying to build an event when I double click a field. As soon as I click on Code Builder, access crashes. It does this with every access database I open.

View 14 Replies View Related

General :: Module Crashing After Changing Window Mode In Macro

Sep 10, 2014

We have been calling a main form to manage yacht races using a hyperlink/macro from a selection form which lists all the yacht races ..The main form was too big to fit on some screens so we changed it to pop up mode to allow it to be resized and use scroll bars. this works well when the form is opened manually and all functions run just fine

the hyperlinik/macro for race selection had originally been set up to call the main form in dialog mode but we have had to change this as it disabled the resizing of the form and the scroll bars..The macro tool doesn't offer pop up mode so i selected window mode = normal and the main form opens with a resizable window and scroll bars but all the functions called from this module now fail (error message = use of null value or similar and all the functions go into debug mode - the server is down and i can't access the system to get the exact details)

If i change the macro in the selection form back to window mode = dialog the functions work but i lose the resizing of the main form and and the scroll bars.

View 1 Replies View Related

Calculated Field In Access Query Contributes To Crashing Excel Table Upon Import

Oct 24, 2012

I have a simple calculated field (As "Ratio") that is readable in Access 2010 query, but crashes in Excel upon importing/running the query in an .xlsx table.

ERROR MESSAGE in EXCEL: "The query did not run, or the database table could not be opened...check database server..contact your database administrator.."

I am simply taking the cost amounts of each project record (shown as "Record Cost") and dividing it by the "Total Cost" of that project to render "Ratio".

The Total Cost is retrieved from another table.

Testing scenarios:
If we exclude Ratio, the whole query import just fine.
If we filter the query to one project (i.e. "Project A") the ratio field imports fine.

However, the whole unfiltered query does not with the ratio!

Other testing scenarios:

If we use a constant for the denominator AS "1" in Ratio (i.e. recordcost/1) the whole unfiltered query and ratio field imports fine.

If we use a constant for the numerator AS "1" in Ratio (i.e. 1/totalcost) the whole unfiltered query upon import crashes in Excel.

This is a mock example of the dataset, the actual query has 50K+ records:

Project Service Date Record Cost Total Cost Ratio
A Welding 1/1/2012 $100 $120 83%
A Plumbing 2/1/2012 $20 $120 17%
B Welding 1/1/2012 $50 $75 67%
B Plumbing 2/1/2012 $25 $75 33%
C Welding 1/1/2012 $40 $61 66%
C Plumbing 2/1/2012 $21 $61 34%

View 5 Replies View Related

Application

Aug 9, 2005

When putting together the final application, you don't want the user to see all the usual default menu options.

1) Which access items should I hide?

2)Let's say I make some modifications after we go live. How can I get the new forms, modules or whatever to the .mdb in use? Would I just delete the tables in the modified .mdb and then import (File/Get External Date/import) the tables with the live data?. It's not a split db, btw.

3) Are there any other options or procedures I should think about for maintainence? For instance, right now I use the compact on close option which has proved to be very useful.

Thanks,

scratch

View 10 Replies View Related







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