Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / SQL Server / ADP / January 2004

Tip: Looking for answers? Try searching our database.

Help w/Report problem - upsized db

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Dave Stoecker - 30 Jan 2004 19:42 GMT
Please bear with me, I'm still fairly new to this stuff...
I have the following code in a subreport based on a View:

' ***********************

Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
   ' Show a rectangle around row if status is "pending"
   If Me.txtStatus.Value = "pending" Then
   Me.BoxPending.Visible = True
   Else:
   Me.BoxPending.Visible = False
   End If
End Sub
' ***********************

This was working fine in MDB, but is not functioning in ADP.  I'm assuming
there are some syntax differences I'm missing.

I have similar code in a recently created report where the txtNowPending
value is from a Bit field, not Char as in the first example.  This works
fine...

Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
   ' Set text value for 3rd column
   Call GetMaxBeds(strBeds)
   Me.txtBeds = strBeds
   ' check hidden status field
   ' draw rectangle around row if pending flag is set
   If Me.txtNowPending = True Then
   Me.BoxPending.Visible = True
   Else:
   Me.BoxPending.Visible = False
   End If
End Sub

Is there a simple change I can make to the first code example to get it
working?

Or should I just write new code to evaluate txtStatus to True/False based on
the string value of the field?
(the view limits this field to two possible values)

Deadline looming - any help is much appreciated.

Thanks - Dave
Dave Stoecker - 31 Jan 2004 13:58 GMT
OK,
I've now solved this problem by using an integer field to represent
"status", and a slight mod to the report code to match.
Now I just have to modify about 3 dozen views, reports, and procedures to
use the new field, ugh...

Thanks anyway...?

> Please bear with me, I'm still fairly new to this stuff...
> I have the following code in a subreport based on a View:
[quoted text clipped - 41 lines]
>
> Thanks - Dave
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.