473,383 Members | 1,877 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,383 software developers and data experts.

Form in View Mode Only will not open in MS Access 2003

1
I have run into an odd problem I have never had in 15 years of messing around with MS Access.

I have a form which has buttons on a Option Group. When the user selects an option button, a tiny module runs that just closes the current form and opens the one they want to see. In this case, I want this form to be VIEW only and not allow edits. I am using the command of:
Expand|Select|Wrap|Line Numbers
  1.     DoCmd.Close acForm, "ActivityView", acSaveYes
  2.     DoCmd.OpenForm "Arrests", acNormal, , , acFormReadOnly, acWindowNormal
This works on every other form in my database, that records police activity for selected denizens of Glendale.

For some reason, I can save the form, then open and run it and it runs properly and opens the designated form in VIEW only mode. However, after that first time it no longer will open the form or work again. If I edit it, save it, I can then get it to work once, but no more.

I have compacted, repaired, and done everything else I can think of and have even recreated the form within the database, to no avail.

Perplexed and giddy in Glendale!

HELP?
Apr 9 '10 #1
2 2454
TheSmileyCoder
2,322 Expert Mod 2GB
Any code behind the form your opening?

I can't spot anything wrong with your approach, and it certainly sounds odd, the "working once" thing.

If you attach the db here, I can take a look.
Apr 9 '10 #2
NeoPa
32,556 Expert Mod 16PB
I think this probably lies in the saving of forms. I'm not clear from your explanation which of the forms you're referring to when you say you saved "it", but as I suspect there's no situation where the design of the form should be updated during the execution of the code, this is probably immaterial.

If it really is your intention to save the design of any of your forms then perhaps you could explain your intentions more clearly. If not (as I suspect) then remove this from the code and see how things work in those circumstances.

PS. To save the data, if that's what you're intending, you can set the Dirty property of the form to False. Strangely, this doesn't roll back any changes, but saves them instead.
Apr 9 '10 #3

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

Similar topics

7
by: Sven Schwyn | last post by:
Hi Many people are asking how to automatically update columns containing a modification date on updates. I'm wondering if the only solutions in the current pgsql really are... - adding...
2
by: Simon Pleasants | last post by:
Am something of a newbie at this, so please bear with any stupid questions. I have created a database to track shipments that we import. The information is stored in a table and I have created...
0
by: dlieu | last post by:
I've found an odd situation in where the Load event of the active form fires (after the Unload event) when Access is closed. I am able to reproduce this situation in Access 2002 SP3 and Access 2003...
9
by: Lyn | last post by:
Hi, I have a form which is opened from a button on another form. The form is used to display a list of records from a recordset in Continuous Mode. It is sized vertically to display about 25...
2
by: misseill | last post by:
Hi there, I am currently working on converting a program from Access 97 to Access 2003. It all worked fine in 97, but there is some randomness in 2003 that I don't understand. I have a form,...
6
by: Salad | last post by:
Hi: I have a Bill of Lading template from the printer that I saved as a BMP. I created a new report and in the report's picture property told it the BMP file name. It brought the image in just...
8
by: Emily Jones | last post by:
Very strange one this. Application written in Access 2000. Runs in 2003 at client's site, 2000 on my development system. FE/BE system. The app's startup form sets a few options, opens the...
0
by: Frnak McKenney | last post by:
I'm running into problems with VisualStudio.NET2003 and Windows Forms inheritance. It _feels_ like a bug, but it could just as well be a misunderstanding on my part regarding how the VS Designer...
11
by: Chippy | last post by:
This is driving me NUTZ. All of my forms are keeping the size of the window I design them in, even when I have the AutoResize option set to Yes. The actual form (grey, gridded area) is the size...
2
by: existential.philosophy | last post by:
This is a new problem for me: I have some queries that open very slowly in design view. My benchmark query takes about 20 minutes to open in design view. That same query takes about 20 minutes...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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...
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:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.