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

Home Posts Topics Members FAQ

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 1384
"E" <ej*****@telusp lanet.net> wrote in message
news:11******** **************@ g14g2000cwa.goo glegroups.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*****@telusp lanet.net> wrote in message
news:11******** *************@g 49g2000cwa.goog legroups.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.LinkMas terFields = "txtLink, txtLink2, txtLink3"
SubData.LinkChi ldFields = "[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 LinkMasterField s 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.LinkMas terFields = "txtLink, txtLink2, txtLink3"
SubData.LinkChi ldFields = "[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 LinkMasterField s 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
2225
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 production box. On the dev box everything works fine, in production it hoses: One of the things a user can do is click a "Change region" link which takes them to a map of the world. They can then select one of four regions.
3
1981
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 registration systems if IP is present in database? I wish to save the user time....if the IP is not present I will present the LOGIN email screen.... 2. I am consideirng using Session variable on each page I wanted I protected...I think I know...
5
1148
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 strange happens. On my photo page, I show a few pictures that are found in a certain folder. But instead of seeing my pictures, I see only the placeholders with a little icon in the left-upper corner with a red cross in it. I know it finds the...
0
837
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 shared host had some unidentified problems but I'm not sure they are related so I can't really ask them to change something. So I thought I'd investigate myself. I found by outputing to the page in
4
7346
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 ********************************************************************************************* 2006-02-23-17.53.12.253000 Instance:DB2 Node:000 PID:1600(db2syscs.exe) TID:440 Appid:AC10E010.J70A.00E883122250 base sys utilities sqleagnt_sigsegvh Probe:1 Database:DEVM_DB Error in agent...
6
2993
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 out.. and also need to un compress at the receiving end.. futher explaing...
5
1604
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 VS2003 and i have iis 6 installed thanks for time and for ur fast reply
13
10378
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 being convert to an Int16 (using Convert.ToInt16). How can that be? There are other text boxes that are used in the identical fashion and they don't generate the exception. All there are many other machines running my application that don't...
25
2993
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 PC running Microsoft Windows XP Professional 5.1.2600 (SP2) A PC running Microsoft Windows XP Professional 5.1.2600 (SP2) All of the PCs are running IIS
0
8399
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8312
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,...
0
8827
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8504
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
7337
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
6169
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
4159
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
2732
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
1622
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.