Results 1 to 2 of 2
  1. #1
    illicited is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Mar 2013
    Posts
    28

    Question Dynamic Report with Unbound Textbox and Label


    I have a form where users select various criteria for generating a report. On the view report command button I have VBA code that generates a dynamic SQL statement and then opens the report based on a querydef with that statement. I have a report structured how I like with an unbound textbox and unbound label in the detail section that I would like to hold the dynamic expression in the SQL statement/QueryDef. I can't seem to get the code right to assign that unbound textbox the results of that particular SQL expression. I've tried in the On Open and On Load events and I'm just not sure what the syntax is for assigning the Thank you in advance for your help.

  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
    I don't know the answer to your specific question but here is a link related to dynamic reports that may help.

    Good luck

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

Similar Threads

  1. using dynamic label/variable name
    By Eef in forum Programming
    Replies: 4
    Last Post: 10-19-2014, 06:24 AM
  2. Dynamic Label in report
    By lugnutmonkey in forum Reports
    Replies: 1
    Last Post: 02-27-2013, 03:19 PM
  3. Replies: 1
    Last Post: 02-29-2012, 04:46 PM
  4. Replies: 5
    Last Post: 06-28-2011, 06:40 PM
  5. Unbound textbox and report linked to vba
    By Shambler2 in forum Programming
    Replies: 7
    Last Post: 06-09-2011, 04:29 PM

Tags for this Thread

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