Results 1 to 3 of 3

Thread: Data1.Recordset.FindFirst "DueDat = search#" Whats Wrong

  1. #1
    Guest

    Post

    I am trying to search trough as database.
    I want the user to input the info to search for under the DueDat column. It runs but then comes up with a error that says somthing like invalid vale in date in expression what should i do?

  2. #2
    Addicted Member
    Join Date
    Apr 1999
    Location
    Freeport
    Posts
    204

    Post

    Show some code that way we may be able to help

  3. #3
    Lively Member
    Join Date
    Jan 1999
    Posts
    82

    Post

    Hi,

    check first that the value that you are passing is a valid date before doing your search.

    You can use:

    if not isdate(expression) then
    msgbox "Invalid date"
    else
    'code for search
    end if

    HTH,

    Preeti

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