Results 1 to 3 of 3
  1. #1
    4 Star Lounger
    Join Date
    Apr 2001
    Location
    Guatemala City
    Posts
    515
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Picking up a LIke name from form (Win ME/Access 97)

    I want to run a macro which performs five queries, all using the same customer number. I have created a form, frmRescindirContrato, which includes an unbound field, NumeroCliente, for entering the customer number. The idea is for each query to use a Like [Forms]![frmRescindirContrato]![NumeroCliente] in the criteria field, rather than entering the number five times.

    When I run the macro I get an error message

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

    Re: Picking up a LIke name from form (Win ME/Access 97)

    From Arguments = , Data Sheet, Edit, it seems that you omitted the name of the query to be executed in the macro. when you specify Open Query as macro action, you must supply a query name in the lower pane of the macro design window. To execute 5 queries, you must have 5 Open Query entries, each with a different query name as argument.

  3. #3
    4 Star Lounger
    Join Date
    Apr 2001
    Location
    Guatemala City
    Posts
    515
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Picking up a LIke name from form (Win ME/Access 97)

    How stupid! Yes, I must have lost one of the query names in my messing around. Put it back in, and everything is fine. Thank you.

Posting Permissions

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