Results 1 to 3 of 3

Thread: Capturing Fields as Variables

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jul 1999
    Posts
    78

    Post

    I dunno if that's an accurate way of describing the problem, but here goes:

    I have a database that I want to implement an If statement into.

    Essentially, the user inputs a string, and depending on whether the string exists in a table or not, the correct form opens.

    I don't know how to write the expression that would return a true/false value when it looks for the string in the specific table.
    Any ideas?

    P.S. I have a query that will give me a true/false value for the record, but I can't get VB to pick it up as a variable.

    ------------------
    Legalese:
    Anything I say on this forum is strictly my own opinion, and if I make a jerk out of myself, it has NOTHING to do with the company.

  2. #2
    Junior Member
    Join Date
    Jan 1999
    Location
    Seattle WA USA
    Posts
    21

    Post

    You'd be surprized how many people have trouble putting a variable into a Seek or FindFirst. Why don't you post the query that doesn't work and I'll help you make it work, if someone else doesn't beat me to it.
    Dave

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Jul 1999
    Posts
    78

    Post

    Actually, I worked around the problem entirely by incorporating two queries into one, and changing the concept a bit.

    I switched from two forms and an If statement opening them to one form with properties that are dynamic according to the true/false value I was trying to capture earlier.

    But I will post an example query for the problem I stated earlier because I am interested; I will get it up later today.

Posting Permissions

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



Click Here to Expand Forum to Full Width