473,395 Members | 1,688 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.

Me.Top is negative, how can i correct it?

um hi, i am using MS Access 2003. i am creating a report with an embebed sub report.

It and the detail section that is in have the can Grow property. ok now in this code

Expand|Select|Wrap|Line Numbers
  1. Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
  2.  
  3.     Dim strImagePath As String
  4.     Dim strImagePath2 As String
  5.  
  6.     On Error Resume Next
  7.      If (Me.Extra= -1) Then
  8.         Me.ImageFrame.Visible = True
  9.         Me.Pieces.Visible = True
  10.         Me.Line112.Visible = True
  11.         Me.Line133.Visible = True
  12.         Me.Commentary.Visible = True
  13.         Me.Desc_box.Visible = True
  14.         Me.TDesc.Visible = True
  15.         Me.TxtDesc.Visible = True
  16.         Me.ImageFrame2.Visible = False
  17.  
  18.         strImagePath = Me.Imagen
  19.         Me.ImageFrame.Picture = strImagePath
  20.         strImagePath2 = (none)
  21.         Me.ImageFrame2.Picture = strImagePath2
  22.  
  23.      Else
  24.         Me.Pieces.Visible = False
  25.         Me.Line112.Visible = False
  26.         Me.Line133.Visible = False
  27.         Me.Commentary.Visible = False
  28.         Me.Desc_box.Visible = False
  29.         Me.TDesc.Visible = False
  30.         Me.TxtDesc.Visible = False
  31.         Me.ImageFrame2.Visible = True
  32.  
  33.         strImagePath = (none)
  34.         Me.ImageFrame.Picture = strImagePath
  35.         strImagePath2 = Extra
  36.         Me.ImageFrame2.Picture = strImagePath2
  37.      End If
  38.  
  39.      If Me.Top < 0 Then
  40.         MsgBox (Me.Top)
  41.      End If
  42.  
  43. End Sub
  44.  
The MsgBox(Me.Top) is giving Me -8543 when the subreport grows.

And everything else is not showing Imageframe1, tdesc, txtdesc etc.

is there any idea of wha i can do to make them show?
Aug 3 '10 #1
1 1725
solved by creating a new column with the page number... not clasy but working

basically inside de sub form made it so that there can not be mote than N columns and making on the value on new column to number page and created a Child master and sorting and grupoing through that value
Aug 13 '10 #2

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

Similar topics

1
by: Thomas F. O'Connell | last post by:
I've been looking through the negative lookbehind posts and haven't yet found a definitive answer to the question I'm about to ask: Does negative lookbehind have lower precedence than even a...
5
by: Subrahmanyam Arya | last post by:
Hi Folks , I am trying to solve the problem of reading the numbers correctly from a serial line into an intel pentium processor machine . I am reading 1 byte and 2byte data both positive...
0
by: Bill Littman | last post by:
We are using a DB2 7.2 system. On the DB2 Control Center of a server, we are viewing the details of the tablespaces. The "percentage used" column is showing a negative value(-69) for one of the...
15
by: jaks.maths | last post by:
How to convert negative integer to hexadecimal or octal number? Ex: -568 What is the equivalent hexadecimal and octal number??
7
by: intrader | last post by:
The regular expression is /(?!((00000)|(11111)))/ in oRe. That is oRE=/(?!((00000)|(11111)))/ The test strings are 92708, 00000, 11111 in checkStr The expression used is checkStr.search(oRE). The...
23
by: Hallvard B Furuseth | last post by:
As far as I can tell, (x & -1) is nonzero if the integer x is negative zero. So for signed types, x == 0 does not guarantee (x & foo) == 0. Is that right? (Not that I expect to ever encounter a...
20
by: Casey | last post by:
Is there an easy way to use getopt and still allow negative numbers as args? I can easily write a workaround (pre-process the tail end of the arguments, stripping off any non-options including...
5
by: vbgunz | last post by:
/* * BEGIN EXAMPLES */ var text = 'A Cats Catalog of Cat Catastrophes and Calamities'; /*** * EXAMPLE 1: negative lookahead assertion logic ***/
0
by: Ben Finney | last post by:
wxPythoner@gmail.com writes: As explicitly defined in the language reference, the "negative" operator has lower binding precedence than the "power" operator...
7
by: klays | last post by:
Hi all, I have created char array, when I use tab compiler shouts out: error: size of array 'tab' is negative I tried to cheat compiler and a little modify this code. Look at the code: ...
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
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
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...

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.