User Profile

Collapse

Profile Sidebar

Collapse
kirschey
kirschey
Last Activity: Jul 21 '09, 09:49 PM
Joined: Apr 8 '09
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • kirschey
    replied to Multi-select list box query
    I now get, "Invalid use of New keyword"
    See more | Go to post

    Leave a comment:


  • kirschey
    started a topic Multi-select list box query

    Multi-select list box query

    I have read the other posts on this subject, but I am still having issues.

    I have a few combo, and one multiselect list box for States delimiting. I am trying to feed a query based on this info. I have it working as a combo box, but now I am getting "type mismatch" and "object variable or with block variable not set" errors.

    Help would be much appreciated in the "listbox" commented section...
    See more | Go to post

  • kirschey
    replied to Create RecordSet from Form Parameters
    I commented out
    Code:
         'Query Parameters
         qdf.Parameters("Region") = Me.Territory
         qdf.Parameters("State") = Me.State
         qdf.Parameters("Brand") = Me.Brand
    and am now getting a type mismatch. Any ideas why?
    See more | Go to post

    Leave a comment:


  • kirschey
    replied to Create RecordSet from Form Parameters
    It is ugly. I am sorry.


    This is the query "output."
    Code:
    SELECT [zz Profit and Loss Flow Final].[Year-Month], Sum([zz Profit and Loss Flow Final].[Cases Shipped]) AS [Cases Shipped], Sum([zz Profit and Loss Flow Final].[Cases Depl]) AS [Cases Depl], Sum([zz Profit and Loss Flow Final].[Cases Depl Budget]) AS [Cases Depl Budget], Sum([zz Profit and Loss Flow Final].[Gross Profit]) AS [Gross Profit], Sum([zz Profit
    ...
    See more | Go to post

    Leave a comment:


  • kirschey
    replied to Create RecordSet from Form Parameters
    I am still getting the error. Maybe it is from another part?
    See more | Go to post

    Leave a comment:


  • kirschey
    replied to Create RecordSet from Form Parameters
    [QUOTE=ADezii;34 79511]
    Code:
    'Resolve the Parameters
    For Each prm In qdf.Parameters
      prm.Value = Eval(prm.Name)
    Next
    Thanks for the help. I still don't get how I would adapt my form inputs into the For loop. Would I use an array?
    See more | Go to post

    Leave a comment:


  • kirschey
    started a topic Create RecordSet from Form Parameters

    Create RecordSet from Form Parameters

    I am trying to use a form data to modify a query and store it as a recordset.

    I have it working properly just opening the query, but I cannot seem to get the QueryDef parameters working the way I would like. (The Me.Territory,Me .State, and Me.Brand is the form data).

    I get the error "Item not found in this collection." Currently.

    The code that doesn't work:
    Code:
        'create the recordset
    ...
    See more | Go to post
    Last edited by pbmods; Apr 8 '09, 11:31 PM. Reason: Added CODE tags.
No activity results to display
Show More
Working...