473,394 Members | 1,866 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Cannot open form

I'm a self-taught user who is trying to create a data entry form for about 10-15 users. I have a data entry form created that I was using yesterday (called "frmResponses"). The form is unbound (I run an append query when a 'Save' button is clicked to add a record to the table that collects my data).

I tried opening the form this morning and now nothing happens. The mouse pointer changes to an hourglass for about one second, then reverts to an arrow without the form opening. When I try to open the form in Design view, the same thing happens.

I have a button on another form (frmMainMenu) that opens the frmResponses form. When I click this button, I get the following error:
Run-time error '2001':
You canceled the previous operation.
When I debug this error, it points to my line of code:
DoCmd.OpenForm "frmResponses"
I don't see any issue with this line of code (it has worked for weeks). The 'Help' from MS Access is blank and I cannot find any information on microsoft.com.

There has to be something wrong with my form but I don't know what and I don't know if I can do anything with it. I am getting my file restored to a previously saved state (I'll just have to re-do what I did yesterday). I'm hoping someone knows what's going on and can lend some advice.

Thanks.
Oct 29 '08 #1
5 2646
DonRayner
489 Expert 256MB
I'm a self-taught user who is trying to create a data entry form for about 10-15 users. I have a data entry form created that I was using yesterday (called "frmResponses"). The form is unbound (I run an append query when a 'Save' button is clicked to add a record to the table that collects my data).

I tried opening the form this morning and now nothing happens. The mouse pointer changes to an hourglass for about one second, then reverts to an arrow without the form opening. When I try to open the form in Design view, the same thing happens.

I have a button on another form (frmMainMenu) that opens the frmResponses form. When I click this button, I get the following error:
Run-time error '2001':
You canceled the previous operation.
When I debug this error, it points to my line of code:
DoCmd.OpenForm "frmResponses"
I don't see any issue with this line of code (it has worked for weeks). The 'Help' from MS Access is blank and I cannot find any information on microsoft.com.

There has to be something wrong with my form but I don't know what and I don't know if I can do anything with it. I am getting my file restored to a previously saved state (I'll just have to re-do what I did yesterday). I'm hoping someone knows what's going on and can lend some advice.

Thanks.
If the db is in development then it could be a bad compile on the form. You could try decompiling the database or creating a new one and importing all of your forms\tables\modules\queries...etc into it.

Don
Oct 29 '08 #2
If the db is in development then it could be a bad compile on the form. You could try decompiling the database or creating a new one and importing all of your forms\tables\modules\queries...etc into it.

Don
How do I decompile a database?
Oct 29 '08 #3
DonRayner
489 Expert 256MB
How do I decompile a database?
This works for 2002, can't vouch for any other versions of access

Go to a comman promt and enter the following. Replace Path with the path to your database and DatabaseName with the name of your db. Make sure to make a backup first.

Expand|Select|Wrap|Line Numbers
  1. msaccess.exe "Path\DatabaseName.mdb" /decompile
Oct 29 '08 #4
Thanks for your help!
Oct 30 '08 #5
DonRayner
489 Expert 256MB
Thanks for your help!
Glad I could help...
Oct 30 '08 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Christopher Brandsdal | last post by:
Hi! I get an error when I run my code Is there any other way to get te information from my form? Heres the error I get and the code beneath. Line 120 is market with ''''''''''''Line...
1
by: Matt | last post by:
My problem is when the user click the submit button, it will launch another new window for the request page. I want to confirm we cannot use JavaScript open window functions to open a request page?...
2
by: Yasutaka Ito | last post by:
Hi folks! I have a BaseForm class that inherits System.Windows.Forms.Form. It has a property, whose value I need supplied by the class that inherits it. The BaseForm usees the value supplied...
1
by: Bob | last post by:
I am displaying a form with a datagrid populated from a select of database records which now exceed 12,000 when I select them all. The form displays just fine with all 12,000+ entries but when I...
2
by: Bas Cost Budde | last post by:
I have a form with a Collection variable to store several objects with WithEvents children, to have all controls of a certain type behave alike. This has been working for the last day, since...
1
by: ericvdb | last post by:
Hi all, I'm trying to fill a PDF form with asp.net using the FDF Toolkit. I have a simple form with a textbox and a button. When the button is clicked, the pdf should open with the field filled...
3
by: epearce301 | last post by:
Hi, I have table1 and table2, both are linked, and a query has been run. I created forms that use both just the tables, and then another one using just the query. All of the information is there,...
1
by: teenagelcruise | last post by:
hi, i have a problem with my code which is i cannot update and addnew data into the database but i can delete the data.plz give me an idea.this is my code that i wrote. <html> <head> <meta...
21
by: Mick1000 | last post by:
Hi all, I am new to perl and this forum. I am trying to setup a mailing list subscription functionality for customers to receive a periodic newsletter from me. My perl program grabs the html form...
5
by: Musa via AccessMonster.com | last post by:
I have the following code to Open a form and set the form to the Survey_ID from the first form. I keep get errors like cannot update file --- The Survey_ID is an autonumber. Could this be the...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.