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

field is wiped out without warning

I have a multi-user database in Access 2000. The back end is on the
server and the front end is on each machine. The user will go to a field
(defined as data type Memo) and make some changes. Then he will go to
another field and the first field is wiped out; nothing is in it.

In the OnExit command, I have DoCmd.RunCommand acCmdSaveRecord.

Also, they are using an .mde file as the front end.

Does anyone have any idea what is causing this field to just wipe out?

Thank you for any help.

Deborah

Nov 13 '05 #1
4 1594
My experience has been that I would have some test code in some obscure
location that I forgot about, and it gets invoked at some event, but you
don't know which event - could be a button event, current event, etc.
To make matters worse, I reference the field by its ordinal number

For i = 0 to rs.fields.count - 1
rs(i) = ""
Next

Something you could try would be to search for the field name using the
Find dialog (ctrl-F in the code module). If that does not turn anything
up then try searching for the table name. If you locate the table name
(or if you are lucky enough to find the actual field name) trace the
code wherever you reference the table/field in question. One other
thing you could check is the default property of the field on the form.
That property may also be getting set to "" after some event. That is
the worst case scenario because you can't find anything in the code
module, and if you have lots of forms and lots of fields - well, you can
open all the forms and loop through the forms collection and check the
properties of each control on each form in a couple of For Each loops
till you find the control whose source is your memo field and then check
its properties. Lastly, you can use DAO to loop through all the
querydef objects (queries) and check the sql string of each query to see
if your memo field is in an update query

Sub HuntForMemofldInQueries()
Dim DB As DAO.Database, QD As DAO.QueryDef
Set DB = CurrentDB
For Each QD in DB.QueryDefs
If Instr(1, QD.Sql, "Memofld") > 0 Then
Debug.Print QD.Name
End If
Next
End Sub

HTH

Rich

*** Sent via Developersdex http://www.developersdex.com ***
Nov 13 '05 #2
Br
Deborah V. Gardner <dg******@twcny.rr.com> wrote:
I have a multi-user database in Access 2000. The back end is on the
server and the front end is on each machine. The user will go to a
field (defined as data type Memo) and make some changes. Then he will
go to another field and the first field is wiped out; nothing is in
it.
In the OnExit command, I have DoCmd.RunCommand acCmdSaveRecord.


Why do you need to save the record after the field is updated? Try
removing that line and see what happens. If it doesn't happen any more
try doing something else to get around it.....

ps. Try Me.Refresh instead :)

<>
--
regards,

Bradley

A Christian Response
http://www.pastornet.net.au/response
Nov 13 '05 #3
Thank you for your response.

I did find some suspicious code and deleted it. The reason I had the
Save command included was in hopes that by saving the record on exit,
the information would not be wiped out.

I did find some information about page-locking vs record-locking and
wonder if that is the problem. I think I might have to include two
fields in place of the one memo field.

Any ideas about how to address this problem if, indeed, it is a locking
issue?

Deborah

Rich P wrote:
My experience has been that I would have some test code in some obscure
location that I forgot about, and it gets invoked at some event, but you
don't know which event - could be a button event, current event, etc.
To make matters worse, I reference the field by its ordinal number

For i = 0 to rs.fields.count - 1
rs(i) = ""
Next

Something you could try would be to search for the field name using the
Find dialog (ctrl-F in the code module). If that does not turn anything
up then try searching for the table name. If you locate the table name
(or if you are lucky enough to find the actual field name) trace the
code wherever you reference the table/field in question. One other
thing you could check is the default property of the field on the form.
That property may also be getting set to "" after some event. That is
the worst case scenario because you can't find anything in the code
module, and if you have lots of forms and lots of fields - well, you can
open all the forms and loop through the forms collection and check the
properties of each control on each form in a couple of For Each loops
till you find the control whose source is your memo field and then check
its properties. Lastly, you can use DAO to loop through all the
querydef objects (queries) and check the sql string of each query to see
if your memo field is in an update query

Sub HuntForMemofldInQueries()
Dim DB As DAO.Database, QD As DAO.QueryDef
Set DB = CurrentDB
For Each QD in DB.QueryDefs
If Instr(1, QD.Sql, "Memofld") > 0 Then
Debug.Print QD.Name
End If
Next
End Sub

HTH

Rich

*** Sent via Developersdex http://www.developersdex.com ***


Nov 13 '05 #4
I did some follow up on this problem. I connected my laptop to the
client's network. The db worked fine. I then opened it on another
computer and it also worked fine.

Then I opened it on 2 other computers and had the same problem--the
field was being wiped out; any changes to the record were not saved.

I shut everything down and opened up the database on one of the
"offending" computers. It worked fine. I opened it up on my laptop and
it worked fine. I then opened it up on 2 other computers (one which
worked fine the first time) and the field was wiped out.

I discovered that the file VBE6.DLL on my laptop is a different version
(it is newer) than the one on the client's computers.

If I remember correctly, I think there was a problem with that file and
one of the patches solved it by updating the file. Each copy of Access
on these machines has had SP3 applied. Is it possible that somehow this
old file is causing the problem?

Thank you for any insight you can offer.

Deborah
Deborah V. Gardner wrote:
Thank you for your response.

I did find some suspicious code and deleted it. The reason I had the
Save command included was in hopes that by saving the record on exit,
the information would not be wiped out.

I did find some information about page-locking vs record-locking and
wonder if that is the problem. I think I might have to include two
fields in place of the one memo field.

Any ideas about how to address this problem if, indeed, it is a locking
issue?

Deborah

Rich P wrote:
My experience has been that I would have some test code in some obscure
location that I forgot about, and it gets invoked at some event, but you
don't know which event - could be a button event, current event, etc.
To make matters worse, I reference the field by its ordinal number

For i = 0 to rs.fields.count - 1
rs(i) = ""
Next

Something you could try would be to search for the field name using the
Find dialog (ctrl-F in the code module). If that does not turn anything
up then try searching for the table name. If you locate the table name
(or if you are lucky enough to find the actual field name) trace the
code wherever you reference the table/field in question. One other
thing you could check is the default property of the field on the form.
That property may also be getting set to "" after some event. That is
the worst case scenario because you can't find anything in the code
module, and if you have lots of forms and lots of fields - well, you can
open all the forms and loop through the forms collection and check the
properties of each control on each form in a couple of For Each loops
till you find the control whose source is your memo field and then check
its properties. Lastly, you can use DAO to loop through all the
querydef objects (queries) and check the sql string of each query to see
if your memo field is in an update query

Sub HuntForMemofldInQueries()
Dim DB As DAO.Database, QD As DAO.QueryDef
Set DB = CurrentDB
For Each QD in DB.QueryDefs
If Instr(1, QD.Sql, "Memofld") > 0 Then
Debug.Print QD.Name
End If
Next
End Sub

HTH

Rich

*** Sent via Developersdex http://www.developersdex.com ***


Nov 13 '05 #5

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

Similar topics

15
by: Jeff North | last post by:
Hi, I'm using a control called HTMLArea which allows a person to enter text and converts the format instructions to html tags. Most of my users know nothing about html so this is perfect for my...
4
by: Magnus Blomberg | last post by:
Hello! I have a problem when using a hidden field to send a value to the server. Below you can see my code in simplyfied versions. What I'm trying to do is: 1. The user browses for a picture...
4
by: Ray Stevens | last post by:
Is it possible to place a company icon (logo) in the browser address field so that if a user copies it as a shortcut to his desktop the icon will be there. For example, like this:...
50
by: Mikhail Teterin | last post by:
Hello! The sample program below is compiled fine by gcc (with -Wall), but rejected by Sun's SUNWspro compiler (version 6 update 2). The point of contention is, whether a value for one of the...
6
by: kev | last post by:
Hi all, i would like to know how can we ensure that a user fill in each field in a form? How do we create a warning message of a sort" Please fill in the details" I hope to get a detailed...
6
by: Richard | last post by:
Which way would you guys recommened to best parse a multiline file which contains two fields seperated by a tab. In this case its the linux/proc/filesystems file a sample of which I have included...
4
by: Andrus | last post by:
If ExecuteQuery method sets fields, C# 3.5 compiler issues invalid warning at compile time: Field '... .Contents' is never assigned to To reproduce, create class class Entity<T> { public...
11
tdw
by: tdw | last post by:
Hi all, I have tried a few different methods to accomplish this, but with no luck. I will post the code for the latest attempt at the end of this post. I work at a land surveying company. This...
9
by: awagner | last post by:
I am compiling a C application on an HP Unix 11.23 platform using the C99 compiler. I am receiving the following three warning message from the /usr/include/sys/_mbstate_t.h include file. ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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:
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.