Consulting

Results 1 to 4 of 4

Thread: Solved: ActiveX MonthView Controls

  1. #1
    VBAX Mentor Marcster's Avatar
    Joined
    Jun 2005
    Posts
    434
    Location

    Question Solved: ActiveX MonthView Controls

    How do you use two ActiveX MonthView control's which are on a form called frmReports in a criteria field in a Query,
    so the query will only select records between the two MonthView dates?.

    The MonthView control's are called monthDateFrom and monthDateTo.

    So far I have this:

    [VBA] Between [forms]![frmReports]![monthDateFrom] And [forms]![frmReports]![monthDateTo][/VBA]

    But the report selects no records and I know there are records between those dates.

    Or should I be using something else?.


    Thanks,

    Marcster.

  2. #2
    VBAX Master Norie's Avatar
    Joined
    Jan 2005
    Location
    Stirling, Scotland
    Posts
    1,831
    Location
    Is the form actually displayed when you try this query?

  3. #3
    VBAX Mentor Marcster's Avatar
    Joined
    Jun 2005
    Posts
    434
    Location
    Hi Norie,

    Yes the form is displayed.
    The query is run after a button on the form is pressed.
    The code behide the button is:

    [VBA]
    DoCmd.OpenReport "rptFormReport", acViewPreview
    [/VBA]
    Last edited by Marcster; 08-31-2005 at 07:12 AM. Reason: Update, to show code.

  4. #4
    VBAX Mentor Marcster's Avatar
    Joined
    Jun 2005
    Posts
    434
    Location
    I've noticed what the problem was.
    There was a spelling mistake in part of the Query which I didn't post above!

    Ooops!...

    Works like it should now .

Posting Permissions

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