Consulting

Results 1 to 4 of 4

Thread: Validating an entry against a database

  1. #1
    VBAX Regular
    Joined
    Jan 2008
    Posts
    75
    Location

    Red face Validating an entry against a database

    Hi All,

    I am having problem writing a vba code in excel in validating an entry(Can2), against a database, and if the can2 is found in the database it gives a message stating valid entry, else it also gives a message of an invalid entry.

    Please, I need your help.

    Thanks

    lucpian

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Where is the database, how are you querying it?

    Show us what you have to date.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    VBAX Regular
    Joined
    Jan 2008
    Posts
    75
    Location
    Hi All,
    The database is an Access database which is located on the M drive, and the Can2 entries are queried against the database. I am not too comfortable with Execl, but will be very grateful if you could address my issues.

    Thanks

    LUCPIAN

  4. #4
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Have you tried querying the database via Data>Import External data>New Database Query. Run a query with the macro recorder on and you will get most of the code. After that, e can help you finish it.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

Posting Permissions

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