473,657 Members | 2,845 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

slowly converting all old 97 databases to 2003...

We are slowly converting all of our older access 97 databases to 2003.
One of them that has been running fine for 3 + years and has over 2000
records in is giving me a problem. It converted fine and seems to be
ok until LOL

I add a new person and enter data....when I try to close the form it
says this record has been modified by another user and can not be
saved...then the save==copy to clipboard===dro p changes box comes up.

anyone have any idea what would get corrupted like this when I
converted?

I checked the relationships and they are there and the same as before
as far as I can tell.

thanks for any ideas
Jerry

Oct 12 '06 #1
5 1532
Just found one thing and wanted to ask.
Some of the number fields are defined as bytes....
http://support.microsoft.com/kb/280730
says that Access is creating Null bit fields, which causes a type
mismatch.
and it mentions int and float fields.

I am changing them all to integer and see if this might be it.


On Thu, 12 Oct 2006 14:02:00 GMT, sparks <js******@swbel l.netwrote:
>We are slowly converting all of our older access 97 databases to 2003.
One of them that has been running fine for 3 + years and has over 2000
records in is giving me a problem. It converted fine and seems to be
ok until LOL

I add a new person and enter data....when I try to close the form it
says this record has been modified by another user and can not be
saved...then the save==copy to clipboard===dro p changes box comes up.

anyone have any idea what would get corrupted like this when I
converted?

I checked the relationships and they are there and the same as before
as far as I can tell.

thanks for any ideas
Jerry
Oct 12 '06 #2
You mean to say that in your first post you fogot to mentoin that you are
using sql server?

You don't think that was a important detal? You should also menton what
version of sql server.

When using sql server (or oracle, or sybase, or MySql), ms-access has to
"figure" out if hte reocrd has been changed. If you don't have a primary
key, and a timestamp field expsoed, then it makes things VERY difficlt for
ms-access to determine if the record has changed. In fact, when using
oracle, or (in your case, sql server), then I find sub-forms OFTEN do not
function correct untill you include a timestamp field in the sub-form.

Of course, if you not using sql server, then none of above advice about
timestamp fields applies, and you don't need them.

If you are not actually using sql server, then that kb aritcle (if you read
it) does not apply.

It would be *quite* surprising that just convering from a97 to a2003 would
cause that problem to rear its ugly head. 99% of the time (when not talking
about sql server), that write conflict probem is due to you running code, or
launch antoher form that mdoifyes the CURRENT data on the CURRENT form, and
that form has PENDING data. (that means, you run some code, or do somting in
code that mdoifyes the CURRENT reocd, but you do so with a reocordset, or
udpate query, or even luanch antoher form. (however, this problem would
normally NOT change due to upgradin to a2003).

If you ahve any code that creaes a new reocrdset, runs a udpate query, or
launchaas antoher form, you need to force a disk write of the current forms
data BEFORE you run this code.

go:

if me.dirty = True then
me.dirty = false
end if

....... your update code goes here (or code to launch other form..or
whatever)

I would double double double check your original code, and if we are NOT
talking about sql server, then the above is likely your problem (but,
strange that it did not exist in a97). and, if in fact you are talking about
sql server, then make sure a pk + timestamp field is exposed.

--
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada
pl************* ****@msn.com
Oct 12 '06 #3
No I didn't mean sql I was just asking if something like that could
cause a 2003 conversion to mess up.
I can't find out what it is.
I did notice that its one 2 sub forms that causes the problem
and only if you change something on an existing value on one of
these 2 forms.
New records added do not have a problem.

I removed all the code behind these 2 subforms and its still doing it.
So I assume that its something else I am not seeing.

On Thu, 12 Oct 2006 14:37:56 GMT, "Albert D. Kallal"
<Pl************ *******@msn.com wrote:
>You mean to say that in your first post you fogot to mentoin that you are
using sql server?

You don't think that was a important detal? You should also menton what
version of sql server.

When using sql server (or oracle, or sybase, or MySql), ms-access has to
"figure" out if hte reocrd has been changed. If you don't have a primary
key, and a timestamp field expsoed, then it makes things VERY difficlt for
ms-access to determine if the record has changed. In fact, when using
oracle, or (in your case, sql server), then I find sub-forms OFTEN do not
function correct untill you include a timestamp field in the sub-form.

Of course, if you not using sql server, then none of above advice about
timestamp fields applies, and you don't need them.

If you are not actually using sql server, then that kb aritcle (if you read
it) does not apply.

It would be *quite* surprising that just convering from a97 to a2003 would
cause that problem to rear its ugly head. 99% of the time (when not talking
about sql server), that write conflict probem is due to you running code, or
launch antoher form that mdoifyes the CURRENT data on the CURRENT form, and
that form has PENDING data. (that means, you run some code, or do somting in
code that mdoifyes the CURRENT reocd, but you do so with a reocordset, or
udpate query, or even luanch antoher form. (however, this problem would
normally NOT change due to upgradin to a2003).

If you ahve any code that creaes a new reocrdset, runs a udpate query, or
launchaas antoher form, you need to force a disk write of the current forms
data BEFORE you run this code.

go:

if me.dirty = True then
me.dirty = false
end if

...... your update code goes here (or code to launch other form..or
whatever)

I would double double double check your original code, and if we are NOT
talking about sql server, then the above is likely your problem (but,
strange that it did not exist in a97). and, if in fact you are talking about
sql server, then make sure a pk + timestamp field is exposed.
Oct 13 '06 #4
I removed all the code behind these 2 subforms and its still doing it.
So I assume that its something else I am not seeing.
If you don't have a pending writes problem (eg: in that form, if it runs
some update code, put in the code to force a disk write

either the if me.dirty.....

or use

me.refresh

(both will simply force a disk write)

So, if you have some update code running in that form, try the above.

This likely centers around some code you have that updates some values.
another possible fix is to put in a doevents to flush the event code stacked
up for running. In converting a very large a97 project to a2003, one form
did have a *slight* difference behaviour in the threading/execution of code.
A doevents fixed this.

So, I don't know why removing the sub-forms would fix anything, nor did I
suggest as such. (unless those sub-forms are bound to the SAME table as the
main form).

The areas to check here is any code that runs something that updates data in
the underlying table. If ANY code does this, the you need to force a disk
write BEFORE YOU run this type of code.
--
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada
pl************* ****@msn.com
Oct 13 '06 #5
Well after about 4 hrs of trying everything I think I have fixed it.
on one of the forms I got the error...I did a copy to clipboard.
It was listing fields on another form.
I went and looked at that form and some of the code
did something like this
based on selections they did

If Q2C5Much Then Q2C5Much = Null
I changed it to

If Not IsNull(Q2C5Much ) Then Q2C5Much.value = Q2C5Much.defaul tvalue

this seems to have fixed it.
I assume I could have done this
If Not IsNull(Q2C5Much ) Then Q2C5Much = Null

but I didn't care to try at that point....after 6 hrs of pulling my
hair out....I was tired and I think I have it licked...well only time
will tell...I can put in records fine and so far I have not seen
another fail to update on anything I have changed but give it time :)

there must be 2000 lines of code behind each form....WELL it seemed
like that much LOL

thanks big time for your help.

Jerry

On Fri, 13 Oct 2006 18:16:48 GMT, "Albert D. Kallal"
<Pl************ *******@msn.com wrote:

Oct 13 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
8286
by: tom horner | last post by:
Something strange is happening to our SQL Server DB (2000). The tempdb transaction log file continues to grow (quite slowly) for no apparent reason. We have it in simple mode, and I have tried a manual checkpoint command and manual shrink (of the log file only). There are no unusual SQL's (large or small) going on. A "heavy hitter" would make it grow fast, not 10 MB every 30 minutes or so. This server has been in production for over a...
17
2887
by: chicha | last post by:
Hey people, I have to convert MS Access 2000 database into mysql database, the whole thing being part of this project I'm doing for one of my faculty classes. My professor somehow presumed I knew db's and gave me long list of things to do with that particular database, first thing being that particular conversion. Truth is that I don't know a first thing about db's, let alone using mysql... I downloaded mysql form www.mysql.com and...
1
1367
by: Orjan | last post by:
Hi I have an Access application with 2 databases ; kobject and ktables. This application is used by several users in various companies. I also have a special .mdw file to protect the application. Some of my clients would like to upgrade their Access version from 2000 to a later more recent version - Access 2003. How can I allow a user to convert the two databases from an older to a later Access version without interfering with the...
3
2614
by: JMCN | last post by:
hello i am in the midst of converting all of the "inherited" databases from access 97 to access 2000. one of the issues i have is the basic one: dao.recordset. i have read that i need to simply turn off the ADO reference and change the reference ms dao 3.6 object library to ms dao 3.51 object library or "disambiguate the code". i tried both and i still receive the error message "run time error 3420 - object invalid or no longer set."
3
1646
by: Andy | last post by:
Hi ! I have many simple, low-tech database applications spread throughout my organization that I developed in Access 2K.. Most have ODBC for Oracle connections ( read only ) to our principal application ( a mid size hospital's ADT software ). My current version of Access is 2000. I must now decide wether or not to install Access2003 on the PC that I use to develop these applications. The users will be converted to 3000 over the next 6...
2
1298
by: Phil K | last post by:
I suspect there is an easy answer to this question, but the problem is driving me mad. I have recently moved from Access 97 to 2003 and am having problems getting some very simple macros and VBA to work. If I log on to the local machine as administrator all is fine. Converted databases and databases created in 2003 macros and vba work fine. However, if I log on as a network user, then the macros and vba dont work. I also get the annoying...
26
10848
by: Bruno Jouhier [MVP] | last post by:
I'm currently experiencing a strange phenomenon: At my Office, Visual Studio takes a very long time to compile our solution (more than 1 minute for the first project). At home, Visual Studio compiles the same solution much faster (about 10 seconds for the first project). My home computer is only marginally faster than the one I have at the office (P4 2.53 vs. P4 2.4, same amount of RAM). On the slow machine, the CPU usage is very low,...
1
1307
by: hadu | last post by:
What is the advantage of converting from MSaccess 2000 database to Msaccess 2003 database?
10
8373
by: NEWSGROUPS | last post by:
I work for an organization that is migrating from Access 2000 to Access 2003. About 5 or 6 years ago we migrated from Access 97 to Access 2000 with no problem. Will I have trouble converting these already converted databases to Access 2003? We also have 2 mda's, will these convert with no problem in the mda format. We no longer have the mdb that made the mda. Are there any other nuances that I need to look out for? Thanks in advance,...
0
8302
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8499
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8601
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7314
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6162
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4150
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2726
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1937
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1601
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.