Results 1 to 3 of 3
  1. #1
    rmd62163 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2013
    Posts
    17

    ListBox question


    Is it possible to have the header of a list box show the value of another control?

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870
    Can you describe an example of what you're trying to do?

  3. #3
    rmd62163 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2013
    Posts
    17
    I can do that.


    The following code sets the row source of the list box and on the column c.LengthofAppointment as [30 minute slots] I would like to have the 30 portion of the header reflect the value of the control c.LengthofAppointment. If not, no biggy I can have the header say Length of Appointment. Don’t ask why Length of appointment isn’t sufficient, doing this for a friend. To each their own.
    Code:
    Me.Schedule.RowSource = "Select s.ID, s.ScheduleName as Name, s.day as [Date], t.apptstart as [Start Time], e.apptstart as [End Time], s.isreoccuring as Reoccuring, aw.NumPatientsPerSlot as [Patients Per Slot], c.LengthofAppointment as [30 minute slots] from schedule as s, appointmentwindow as aw , [time] as t, [time] as e, Clinic AS c where s.ClinicID = " & Me.ID & " and s.ID = aw.ScheduleID and aw.AppointmentWindowStartTime = t.id and aw.AppointmentWindowEndTime = e.id and s.ClinicID = c.id"

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 3
    Last Post: 12-13-2012, 04:40 AM
  2. Replies: 1
    Last Post: 09-10-2012, 11:21 PM
  3. Replies: 1
    Last Post: 07-26-2012, 11:45 AM
  4. Listbox question
    By uaguy3005 in forum Access
    Replies: 1
    Last Post: 03-05-2010, 08:35 AM
  5. Replies: 3
    Last Post: 08-11-2009, 02:21 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums