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 / Reports / Printing / January 2006

Tip: Looking for answers? Try searching our database.

'.Top' in Calendar Report

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
nutmeg@questions.com - 03 Jan 2006 04:00 GMT
I am attempting to build a similar style Calendar report as Duane Hookum has
shown on his website.  I have changed the relevant fields and have
substituted 'RoadnameCivic' for 'Patient' name so that addresses will show up
in the time frames stead of Patient names. Everything looks the same but each
time I try to run the report, the code stops at the '.Top' and it won't go
past it. I am using Access 2002.  Is anyone able to assist me with whatever I
might be doing wrong.  I have checked all the widths and heights and they all
match.

The code looks like:

Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
  Dim lngTopMargin As Long

  Dim lngOneMinute As Long 'size of one minute in twips
  Dim datSchedStart As Date
  datSchedStart = #8:00:00 AM#
  lngOneMinute = 12
  lngTopMargin = 1440 'timeline starts 1" down in section
  Me.MoveLayout = False
  Me.RoadnameCivic.Top = lngTopMargin + DateDiff("n", datSchedStart,
Me.TimeAppointmentStart) * lngOneMinute
  Me.RoadnameCivic.Height = DateDiff("n", Me.TimeAppointmentStart,
Me.TimeAppointmentFinish) * lngOneMinute
  Me.RoadnameCivic.Left = Me.ReportColumn   'field in table
  Me.CrewName.Left = Me.ReportColumn    'field in table
End Sub

Any help gratefully accepted.

IEJ
Duane Hookom - 03 Jan 2006 04:15 GMT
Do you have a control named "RoadnameCivic" in the detail section of your
report?

Signature

Duane Hookom
MS Access MVP
--

>I am attempting to build a similar style Calendar report as Duane Hookum
>has
[quoted text clipped - 32 lines]
>
> IEJ
nutmeg@questions.com - 03 Jan 2006 14:29 GMT
Good morning, always helps to have a fresh set of eyes look at something.  I
went back and looked and I had changed all the Control Sources but had not
changed the Names and that seemed to be the problem.  Thank you so much, I
think I can make this work for the appointment application I need.  

One question I do have though is, I have a lot more Crews (Doctors) to go
across the top of the page.  Can you suggest how to get them all on, say
6-9+.  I have used the Report Column field and have incremented each new guy
by 2500 twips as you had shown.

Thankyou,
IEJ

> Do you have a control named "RoadnameCivic" in the detail section of your
> report?
[quoted text clipped - 35 lines]
> >
> > IEJ
Duane Hookom - 03 Jan 2006 14:45 GMT
You can increment the ReportColumn field by 1250 to get twice as many
columns. This value is used to determine the distance of the column from the
left margin.

Signature

Duane Hookom
MS Access MVP
--

> Good morning, always helps to have a fresh set of eyes look at something.
> I
[quoted text clipped - 54 lines]
>> >
>> > IEJ
nutmeg@questions.com - 03 Jan 2006 15:08 GMT
Thank you, I'll give that a try.  I haven't worked with twips before so am
not familiar with the values.

Once again, thank you for this calendar solution, it definitely is what we
need and I really appreciate your help.

Regards,
IEJ

> You can increment the ReportColumn field by 1250 to get twice as many
> columns. This value is used to determine the distance of the column from the
[quoted text clipped - 58 lines]
> >> >
> >> > IEJ
Duane Hookom - 03 Jan 2006 17:25 GMT
There are 1440 twips per inch. Setting the values to intervals of 1440 will
space your columns 1" apart.

Signature

Duane Hookom
MS Access MVP
--

> Thank you, I'll give that a try.  I haven't worked with twips before so am
> not familiar with the values.
[quoted text clipped - 78 lines]
>> >> >
>> >> > IEJ
 
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.