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

Code Debugging

I was recently tidying up my DB and was tidying one of my reports which is
generated from a form with a script in it. The script is:-

Private Sub Detail_Print(Cancel As Integer, PrintCount As Integer)
Me.txtWordCount = Forms!Translators!txtWordCount
If PrintCount <> 1 Then
Else
If intPreviousTranslatorID = Me!ID Then
Me.MoveLayout = False
Me.NextRecord = True
Me.PrintSection = False
Else
intPreviousTranslatorID = Me.ID
End If
End If

End Sub

I think I may have deleted something important from the report. When I go to
run the report, I get a "Compile error. Method or data not found" message.
The following parts are highlighted in the above script:

Private Sub Detail_Print(Cancel As Integer, PrintCount As Integer)
Me.ID

I think that I may have deleted the ID part from a report.

Anybody got any ideas how I can go about fixing this?
Nov 13 '05 #1
2 2330
"Neil Greenough" <ne***********@btopenworld.com> wrote in message
news:ck**********@hercules.btinternet.com...
I was recently tidying up my DB and was tidying one of my reports which is
generated from a form with a script in it. The script is:-

Private Sub Detail_Print(Cancel As Integer, PrintCount As Integer)
Me.txtWordCount = Forms!Translators!txtWordCount
If PrintCount <> 1 Then
Else
If intPreviousTranslatorID = Me!ID Then
Me.MoveLayout = False
Me.NextRecord = True
Me.PrintSection = False
Else
intPreviousTranslatorID = Me.ID
End If
End If

End Sub

I think I may have deleted something important from the report. When I go to run the report, I get a "Compile error. Method or data not found" message.
The following parts are highlighted in the above script:

Private Sub Detail_Print(Cancel As Integer, PrintCount As Integer)
Me.ID

I think that I may have deleted the ID part from a report.

Anybody got any ideas how I can go about fixing this?


Did you try Me!ID instead of Me.ID ?
Nov 13 '05 #2
Problem solved.

Thanks

"Neil Greenough" <ne***********@btopenworld.com> wrote in message
news:ck**********@hercules.btinternet.com...
I was recently tidying up my DB and was tidying one of my reports which is
generated from a form with a script in it. The script is:-

Private Sub Detail_Print(Cancel As Integer, PrintCount As Integer)
Me.txtWordCount = Forms!Translators!txtWordCount
If PrintCount <> 1 Then
Else
If intPreviousTranslatorID = Me!ID Then
Me.MoveLayout = False
Me.NextRecord = True
Me.PrintSection = False
Else
intPreviousTranslatorID = Me.ID
End If
End If

End Sub

I think I may have deleted something important from the report. When I go to run the report, I get a "Compile error. Method or data not found" message.
The following parts are highlighted in the above script:

Private Sub Detail_Print(Cancel As Integer, PrintCount As Integer)
Me.ID

I think that I may have deleted the ID part from a report.

Anybody got any ideas how I can go about fixing this?

Nov 13 '05 #3

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

Similar topics

1
by: Johann Blake | last post by:
My ASP.NET application is written using C# script as well as C# code-behind. After setting a breakpoint in the script and running the application, I click from one page to the next but when I...
16
by: Serdar Kalaycý | last post by:
Hi everybody, My problem seems a bit clichè but I could not work around. Well I read lots of MSDN papers and discussions, but my problem is a bit different from them. When I tried to run the...
171
by: tshad | last post by:
I am just trying to decide whether to split my code and uses code behind. I did it with one of my pages and found it was quite a bit of trouble. I know that most people (and books and articles)...
14
by: John M | last post by:
Hello, In Microsoft Visual Studio .NET 2003, How can I debug javascript/vbscript codes (client side) ? Thanks :)
3
by: Mike | last post by:
In VB 6, you could change most code while your project was in Break mode. I am targeting the Pocket PC, and VB .NET 2003 is not allowing me to change code while debugging. Is this true for all VB...
3
by: Rea | last post by:
Hey eb After installing microsoft's script debugger, I configured my default web site and internet explorer to enable script debugging. But when stepping into debugging mode in some asp page...
10
by: Andrew Kidd | last post by:
I see this when I'm stepping through in the debugger ... just thought I'd ask, and I just know it's going to be one of those "Doh" moments, but it's got me foxed just now.
9
by: Rea | last post by:
Hi eb I set some 'Stop' statements and also visual breakpoints in asp code (vbscript). I am doing that in Microsoft Script debugger. Than I refresh the original page and expect execution to halt...
41
by: tech guru | last post by:
Hi, I am doing some mathematical analysis on large numbers in C. The same code runs perfectly in Windows but produces unpredictable results in Unix (like negative numbers or very very big...
2
by: JM | last post by:
Hi, I used to chage my code during debugging with Visual Studio 2003 (I just stopped the code using a break point and VS2003 allowed me to change the code, and continue debugging), but now with...
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...
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
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...
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...
0
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...
0
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,...

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.