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

Strange problem loosing data based on physical machine

E
I have encountered a very strange problem that is hard to describe, but
hope someone has run across it.

I have a form that shows a number of columns from a single table in the
upper portion of the form in a datasheet layout. The user can then
choose a category from a dropdown list, and based on that category will
see further data in the bottom part of the screen. They can choose one
of 2 categories, but both show data FROM THE SAME TABLE FOR THE SAME
ROW - just different columns based on the category.

This is treated as a parent child relationship in a form-subform
arrangement, but in reality the data is in the same row. The link
between the "parent" and "child" is built using VBA in a load module
and works fine most of the time.

Here is my problem:

On a computer for one of my users, when they choose the category, no
data is displayed in the subform. It doesn't matter who is logged in
to that computer, it never shows the data in the subform. It's like it
can't find the related record to display the child information and in
fact the keys are empty - but they shouldn't be because it is the same
record that currently has focus on the master form. It can't be a
programming error because the application works fine on 3 other
computers that it is installed on. All machines are XP machines
running Access 2003. The application has a UI MDB and a back end DB
which resides on the network. It uses an MDW file for security.

I am at a total loss - any ideas anyone?

Eric

Jan 4 '06 #1
7 1369
"E" <ej*****@telusplanet.net> wrote in message
news:11**********************@g14g2000cwa.googlegr oups.com...
I have encountered a very strange problem that is hard to describe, but
hope someone has run across it.

running Access 2003. The application has a UI MDB and a back end DB
which resides on the network. It uses an MDW file for security.

It's my guess that user-level security hasn't been implemented correctly and
that, on the other machines, the default "system.mdw" workgroup file has
been modified but on the problem machine it hasn't. This scenario would
make it possible for the users group to have permissions to all objects on
the modified machines but not on the problem one.

Then again I could be completely wrong but it's worth checking.

Regards,
Keith.
www.keithwilby.com
Jan 4 '06 #2
E
Thanks Keith for the pointer. The application uses a custom MDW and
that is specified in the shortcut used to launch the application. The
custom MDW is on the network with the backend mdb. Would the
default.mdw still be an issue somehow?

Jan 4 '06 #3
I don't know anything about .mdw files, but couldn't you just
rename/remove the default.mdw? Then you could run your database and
eliminate this conflict as a possibility. If the same problem exists,
you can just move your default.mdw back to where it is now.

Jan 4 '06 #4
E wrote:
I have encountered a very strange problem that is hard to describe, but
hope someone has run across it.

I have a form that shows a number of columns from a single table in the
upper portion of the form in a datasheet layout. The user can then
choose a category from a dropdown list, and based on that category will
see further data in the bottom part of the screen. They can choose one
of 2 categories, but both show data FROM THE SAME TABLE FOR THE SAME
ROW - just different columns based on the category.

This is treated as a parent child relationship in a form-subform
arrangement, but in reality the data is in the same row. The link
between the "parent" and "child" is built using VBA in a load module
and works fine most of the time.

Here is my problem:

On a computer for one of my users, when they choose the category, no
data is displayed in the subform. It doesn't matter who is logged in
to that computer, it never shows the data in the subform. It's like it
can't find the related record to display the child information and in
fact the keys are empty - but they shouldn't be because it is the same
record that currently has focus on the master form. It can't be a
programming error because the application works fine on 3 other
computers that it is installed on. All machines are XP machines
running Access 2003. The application has a UI MDB and a back end DB
which resides on the network. It uses an MDW file for security.

I am at a total loss - any ideas anyone?

Eric

On thing you might try, besides the other comments if that doesn't help,
is to open the form in design mode on that users' machine and copy the
SQL code for the recordsource to your clipboard. Then create a new
query, don't add tables, go to View/SQL on the menu, and paste the code
into it. Now try to run the sql. Does it run or does it give you an error?
Jan 4 '06 #5
"E" <ej*****@telusplanet.net> wrote in message
news:11*********************@g49g2000cwa.googlegro ups.com...
Thanks Keith for the pointer. The application uses a custom MDW and
that is specified in the shortcut used to launch the application. The
custom MDW is on the network with the backend mdb. Would the
default.mdw still be an issue somehow?

As long as the shortcut is in the format

"Full path to MSACCESS.exe" "Full path to your app.mdb" /wrkgrp "Full path
to your WIF.mdw"

then the default system .mdw shouldn't enter into it. Could it be a drive
(letter) mapping issue?

Keith.
Jan 5 '06 #6
E
Okay,

I solved this one, so I thought I would post my solution in case anyone
runs into the same problem.

Further investigation led to these 2 VBA lines of code as the lines
that stopped working:

SubData.LinkMasterFields = "txtLink, txtLink2, txtLink3"
SubData.LinkChildFields = "[Map Number], [Weld Number], [Location
Number]"

On the one computer I mentioned, they caused the sub form to not find
the related record that was in fact there. Commenting out those 2
lines had the subform bring back all records with no filtering criteria
as you would expect.

Looking at the way this application was developed (don't you love
maintaining someone else's code?) the subform was not in fact a "True"
subform. There was no subform object on the main form. What happened
was custom VBA code was written to execute when the user chose a
category and then create those links above, then open another form and
resize the main form so you could see the new one below. The point is,
I could not just set the LinkChildFields and LinkMasterFields in the
design view, cause it was all done at runtime.

I knew this code worked on other machines, so I didn't want to
redevelop the application to have an actual subform, so I checked
version numbers. The machine where it did not work had Access 2003
version 11.5614.5606. One of the machines where is did work had
version 11.6355.6408 SP1. So I updated them both to SP2 and voila! -
problem went away. Guess I should have checked version numbers first
thing. Would have saved myself 2 hours of grief. Makes me mad though
that it worked in Access 2000, then not in older versions of 2003, but
again in newer 2003.

Eric

Jan 6 '06 #7
E wrote:
Okay,

I solved this one, so I thought I would post my solution in case anyone
runs into the same problem.

Further investigation led to these 2 VBA lines of code as the lines
that stopped working:

SubData.LinkMasterFields = "txtLink, txtLink2, txtLink3"
SubData.LinkChildFields = "[Map Number], [Weld Number], [Location
Number]"

On the one computer I mentioned, they caused the sub form to not find
the related record that was in fact there. Commenting out those 2
lines had the subform bring back all records with no filtering criteria
as you would expect.

Looking at the way this application was developed (don't you love
maintaining someone else's code?) the subform was not in fact a "True"
subform. There was no subform object on the main form. What happened
was custom VBA code was written to execute when the user chose a
category and then create those links above, then open another form and
resize the main form so you could see the new one below. The point is,
I could not just set the LinkChildFields and LinkMasterFields in the
design view, cause it was all done at runtime.

I knew this code worked on other machines, so I didn't want to
redevelop the application to have an actual subform, so I checked
version numbers. The machine where it did not work had Access 2003
version 11.5614.5606. One of the machines where is did work had
version 11.6355.6408 SP1. So I updated them both to SP2 and voila! -
problem went away. Guess I should have checked version numbers first
thing. Would have saved myself 2 hours of grief. Makes me mad though
that it worked in Access 2000, then not in older versions of 2003, but
again in newer 2003.

Eric

Thanks for sharing your solution.
Jan 7 '06 #8

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

Similar topics

1
by: Tony Archer | last post by:
(Forgive the dupicate post, I had left out the OS Version out of the prior post.) Gentlemen, your urgent help is needed in solving a STRANGE problem. I have two servers a dev box, and a...
3
by: | last post by:
My questions concerns building a login system based on checking for the existence of the user's email address only.... 1. Is it ok for me to use IP address to allow user to bypass all login and...
5
by: EMW | last post by:
On my pc on which I created my aspx files, my site works fine. I use IIS5 and is does everything I want it to do. I moved my site to the networkserver (it's a intranet site) and then something...
0
by: Colin Peters | last post by:
Hi, I have the following problem: I've implemented role based security and it worked fine on both my local dev machine and my remote shared host. Now it only works on my dev machine. My...
4
by: Praveen_db2 | last post by:
Hi All I am getting strange errors in my db2diag.log can any one tell me what these errors mean?? Following is the code from my db2diag.log...
6
by: Champika Nirosh | last post by:
Hi, I have two machine where I needed to have a extended TCP/IP protocol to make the link between the two machines Mean,I need to write a application that compress every data the machine send...
5
by: Developer.Man4 | last post by:
when i try using HttpContext.Current.Server.MapPath(path) from a desktop application built using c# i get a System.NullReferenceException can anyone tell me why and what to do?? m using...
13
by: Jen | last post by:
One user of my application is experiencing an exception "input string not in correct format". But it makes no sense where it is occurring. It is occurring when a string from a textbox ("172") is...
25
by: p byers | last post by:
Good Morning Folks I have a LAN Among the several connections to it are the following four devices: A MAXSTOR network Storage Device A PC running Microsoft Windows 2000 Server 5.0.2195 (SP4) A...
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: 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: 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: 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...

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.