Results 1 to 2 of 2
  1. #1
    jgelpi is offline Novice
    Windows XP Access 2003
    Join Date
    May 2009
    Posts
    19

    Question Checking for Value in Query

    I have a situation where I need to check if a value exists in a query. If it does I just want to return a simple message box stating value already exists. Can anyone help me with this one?

    If (value from combo box) = (Any value in the query) then
    msgbox "You have already signed in today", vbokonly
    combo42.value = ""
    command2.setfocus
    End If



    That is what I'm looking to do. Your help is much appreciated!

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    A query *only* exists when it is run. How about looking at the DLookup() or DCount() functions for what you need.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Checking a record in a table
    By widstje in forum Programming
    Replies: 4
    Last Post: 11-07-2007, 11:28 AM
  2. Need help checking database design
    By abc7 in forum Database Design
    Replies: 1
    Last Post: 10-29-2007, 08:08 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums