Results 1 to 2 of 2
  1. #1
    codewriter
    Guest

    TxtBox on a form as query criteria

    I want to use the value from a text box on a form as criteria in a query. I tried using: forms![FormName].[txtBox] in the criteria line of the query with no success. Any ideas?

  2. #2
    WS Lounge VIP rory's Avatar
    Join Date
    Dec 2000
    Location
    Burwash, East Sussex, United Kingdom
    Posts
    6,280
    Thanks
    3
    Thanked 191 Times in 177 Posts

    Re: TxtBox on a form as query criteria

    Hi,
    You should be able to use the textbox as criteria in that way using =[Forms]![formname]![textboxname]. What errors are you getting exactly?
    Regards,
    Rory

    Microsoft MVP - Excel

Posting Permissions

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