473,698 Members | 2,466 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Tracing Links Problem and Conversion Errors

JamesDC
66 New Member
Hey all,

I have two problems with trying to upgrade an access file, not written by myself.

This first is that I'm trying to change the items on a dropbox list, and they are linked with the following code:

SELECT DISTINCTROW [Processing Data].[ID], [Processing Data].[Number], [Processing Data].[Products] FROM [Processing Data];

My problem is that I cannot find any table called Processing Data. Are there other places that I could look to try to find this? Or is there a way to open the link from inside the properties box for the dropbox?

My second question is concerning these conversion errors that appeared in the Table menu when the database was converted from Access 200 to Access 2002. They seem to each contain a small error comment, and I'm not sure if I should delete them.

Thanks in advance for any help you can provide,

James
Feb 23 '07
29 2651
NeoPa
32,569 Recognized Expert Moderator MVP
This code will create a running sum in your Report (except it won't as the .Text bit at the end is an error).
It would be interesting to know what the Test object is that it refers to, but if you remove the .Text bit it should work without error.
Missed a bit earlier - I don't know where the word Report comes in at the start of that line. It should probably be removed too (I assume you've copied and pasted this in - it looks a little bit like a retype gone wrong to be honest).
Feb 27 '07 #11
JamesDC
66 New Member
I still get the same error when I remove the .Text part of the code.

Also, I found a hidden table called MySysCompactErr or, I believe this related to my other errors. Once more this thing confuses me. It is a table fof 4 headings: Error Code, ErrorDescriptio n, ErrorRecid, ErrorTable. There is one record in this table: -1003, Invalid Argument, ą, Processing Report (in the same heading order).

ErrorRecid seems to only accept binary values according to design view, but its value is that weird ą value.
Feb 27 '07 #12
MMcCarthy
14,534 Recognized Expert Moderator MVP
Expand|Select|Wrap|Line Numbers
  1. Option Compare Database
  2. Option Explicit
  3.  
  4. Private Sub Report_Open(Cancel As Integer)
  5. Dim iOEE As Integer
  6. Dim iOldOEE As Integer
  7.  
  8. If [test].[Line #] = 1 Then
  9.     iOEE = [OEE] + iOEE
  10. End If
  11.  
  12. Report [test].txtOEE.Text = iOEE
  13. End Sub
  14.  
I've never seen a piece of code like this. The Report would indicate trying to return something from a function but this is a procedure. It's possible that this is a function available in some library that is not available to the current database but as I've never seen it I can't make a guess at what library contains that function.

Mary
Feb 27 '07 #13
MMcCarthy
14,534 Recognized Expert Moderator MVP
Snap!
:D
You got there seconds before me. ;)

This is one of those funny functions and I've no idea what library it's from. I would suggest giving Nico and ADezii a shout as they may be familar with it.

Mary
Feb 27 '07 #14
NeoPa
32,569 Recognized Expert Moderator MVP
I still get the same error when I remove the .Text part of the code.

Also, I found a hidden table called MySysCompactErr or, I believe this related to my other errors. Once more this thing confuses me. It is a table fof 4 headings: Error Code, ErrorDescriptio n, ErrorRecid, ErrorTable. There is one record in this table: -1003, Invalid Argument, ą, Processing Report (in the same heading order).

ErrorRecid seems to only accept binary values according to design view, but its value is that weird ą value.
Sorry, I noticed (and updated my post) too late that the word Report needs to be removed from the line too.
I assume that the TextBox actually exists on the report.
Feb 27 '07 #15
NeoPa
32,569 Recognized Expert Moderator MVP
This is one of those funny functions and I've no idea what library it's from.
Mary
I would simply remove it.
It seems clear that the intention is to create a running sum and, although there is a better way nowadays, leaving the amended code in place doesn't seem like a big problem to me. It should get the OP past that particular problem at least.
Feb 27 '07 #16
JamesDC
66 New Member
I got rid of the Report problem with your advice NeoPa, and now I'm getting an error in another area of the code.

Expand|Select|Wrap|Line Numbers
  1. Private Sub Command176_Click()
  2.     ID.SetFocus
  3.     ID.Text = ID.Text + 1
  4.     Date.SetFocus
  5.     Date.Text = ""
  6.     ItemNum.SetFocus
  7.     ItemNum.Text = ""
  8.     LineNum.SetFocus
  9.     LineNum.Text = ""
  10.     ActualManHours.SetFocus
  11.     ActualManHours.Text = ""
  12.     ScheduledHoursOnLine.SetFocus
  13.     ScheduledHoursOnLine.Text = ""
  14.     Timebox.SetFocus
  15.     Timebox.Text = ""
  16.     Comments.SetFocus
  17.     Comments.Text = ""
  18.     ItemDescription.SetFocus
  19.     ItemDescription.Text = ""
  20.     LineDescription.SetFocus
  21.     LineDescription.Text = ""
  22.     ActualTotalCases.SetFocus
  23.     ActualTotalCases.Text = ""
  24.     ActualHoursOnLine.SetFocus
  25.     ActualHoursOnLine.Text = ""
  26.     DowntimeReason.SetFocus
  27.     DowntimeReason.Text = ""
  28.  
  29. End Sub
  30.  
It's telling me that ItemNum is an non defined variable, I think this may have to do something with one of the tables, I'm looking into that now.

Also, as a general question, I know when I learned Java and C++ we were really pushed to comment on every bit of code we write. Is it the creator of this file, or is it programming with VB in access, that leads to no commenting in the file? I would think that comments relating where certain items relate to certain tables could be very helpful... but in all of the Access databases used by my company I can see no commenting in any of the code.
Feb 27 '07 #17
MMcCarthy
14,534 Recognized Expert Moderator MVP
Also, as a general question, I know when I learned Java and C++ we were really pushed to comment on every bit of code we write. Is it the creator of this file, or is it programming with VB in access, that leads to no commenting in the file? I would think that comments relating where certain items relate to certain tables could be very helpful... but in all of the Access databases used by my company I can see no commenting in any of the code.
Access VBA code should be commented like any other code. I know what you mean though. I've troubleshooted on some huge databases with no comments and it's a nightmare. All you need to do to add a comment is to put an apostrophe at the beginning of a line of text.

Mary
Feb 27 '07 #18
NeoPa
32,569 Recognized Expert Moderator MVP
I got rid of the Report problem with your advice NeoPa, and now I'm getting an error in another area of the code.
Pleased that helped.
It's telling me that ItemNum is an non defined variable, I think this may have to do something with one of the tables, I'm looking into that now.
Please let us know which line it failed on and the exact error message. I can't work out from what you say if this is simply that the code uses the .Text property again, or that the control [ItemNum] is not defined on the form.
Also, as a general question, I know when I learned Java and C++ we were really pushed to comment on every bit of code we write. Is it the creator of this file, or is it programming with VB in access, that leads to no commenting in the file? I would think that comments relating where certain items relate to certain tables could be very helpful... but in all of the Access databases used by my company I can see no commenting in any of the code.
I would always recommend commenting code. Having said that, it is probably more necessary to do so when working in a C related language than in a version of Basic, which typically is nearer to a natural spoken language than C is.
C was once notably described as a Read Only language.
Feb 27 '07 #19
JamesDC
66 New Member
Sorry about that,

the line that the error came up on is :
ItemNum.SetFocu s

Where ItemNum is highlighted. The exact error is Compile Error: Variable Not Defined

I can't find any items on any of the forms that use Command176 when clicked. So I'm still looking...
Feb 27 '07 #20

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

Similar topics

0
313
by: Peter Otten | last post by:
QOTW: "With only one historian, there are no errors, everything written becomes fact." - Raymond Hettinger about Brett Cannon as the author of the python-dev summary "ode runs in the scope it was *defined* in, not the scope it is invoked in." - Jp Calderone Dan Bishop posts a string-to-date conversion oneliner for Martin Bless. http://groups.google.com/groups?selm=ad052e5c.0407201114.71ba95a0%40posting.google.com
3
1714
by: Serge Rielau | last post by:
Hi SQL Procedure developers, As threatened in earlier posts the SQL PL Tracing facility is finally oot-and-aboot. SQL procedure tracing: Analyzing SQL procedure flow This article describes an API that allows for transparent tracing of SQL procedures as well as explicit tracing of non-SQL procedures in DB2 Universal Database (UDB) V8.2 for LUW. An example SQL interface to this API is provided, as well.
4
6484
by: Nikhil Patel | last post by:
Hi all, I am a VB6 programmer and learning C#. I am currently reading a chapter on types. I have question regarding enums. Why do we need to convert enum members to the value that they represent? Thanks in advance... -Nikhil
5
3188
by: Stig | last post by:
I would like to output the sequence of method calls from a running c# applcaition, but I don't want to add Debug.trace calls at the entry and exit points in each an every methods. Does there exist a c# profiler which can profile and then log the sequence of function calls automatically? regards Stig Nielsson
6
1659
by: serge calderara | last post by:
Dear all, I have an applicatin that generate a querry to an SQL server, then display results on a second webform. I try to see how tracing works, then I have notice that as soon as I implement tracing on the page, when I click on the BACK button of explorer I get a warning message that information of the page needs to be resend to be displayed ?
2
1757
by: deepukutty | last post by:
Hi all, I know tht we can do tracing in two ways.one in application level and the other is at Page level. I am able to see the details of trace either on the page itself or .../trace.axd page. I want to use maximum out of the available trace details . or let me put it like this.... tell me the actual scenario's where these trace details will be use ful and
0
1365
by: cnys | last post by:
We have an ASP.NET 2.0 (C#) app and we're trying to add tracing into it. The tracing functionality within .NET is great, but when we output this to a file, it's kind of sparse. So, we're looking for ideas on how to get more tracing info. output to our log file than what's currently output by calling the Write methods. Here are some snippets of what we're thinking of:
1
1740
by: Carlos Martinez | last post by:
Hi all: I want to know how can I trace an address. I don't need the conversion from an integral type to string. Suppose I have an "asString" function that do that conversion. My main problem is that code must compile for 2 compilers and 2 Operating Systems. I cannot assume the size of pointers to have 4, 8, ... bytes.
3
3969
by: prakashwadhwani | last post by:
I have just been asked to port an Access 97 app from an old Pentium 3 to a new Pentium Core-2-Duo PC. On the new PC, Office 2003 is installed. On opening the database, Access provided me with an option to convert the database which I did. However, there are a couple of small issues. For one, there were a couple of conversion errors which it stored in a conversion errors table (saying it could not find the field "description").
0
8678
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
8609
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
9166
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
8899
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
8871
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
5861
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4371
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...
0
4621
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3052
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

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.