Results 1 to 2 of 2
  1. #1
    Bronze Lounger
    Join Date
    Jan 2001
    Location
    Alzano Lombardo, Italy
    Posts
    1,483
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Referencing a query field in VBA (2000)

    What is the correct syntax for referencing the Giorno field of the report Control Source(Query2) in the Report_Activate() event of the RDEZZO report in the attached mdb?
    I've tried
    <font color=red>Me!label25.Caption = "Rapporto giornaliero di " & WeekdayName(Weekday(Me!GIORNO)) & " " & Format(Me!GIORNO, "dd/mm/yyyy")</font color=red>
    but it doesn't work.
    Attached Files Attached Files

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Referencing a query field in VBA (2000)

    You can do this without code, so you can set the Has Module property of the RDezzo report to No.
    Change the label Label25 to a text box (right-click menu, Change To)
    Set its Control Source to

    ="Rapporto giornaliero di " & Format([GIORNO],"dddd dd/mm/yyyy")

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •