Results 1 to 4 of 4

Thread: Help with tihis (V.B. & Access)

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Aug 2000
    Location
    México, D.F.
    Posts
    64

    Talking

    Someone can help me with this mistake:
    the query runs perfectly, but when i run the next line it shows me an error "Type mismatch"

    pQuery = "Select PubID, Name, Telephone from Publishers"
    ReportWriter.F1Book1.ODBCQuery pQuery, 1, 1, False, True, True, True, False, pRetCode


    Tnax

  2. #2

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Aug 2000
    Location
    México, D.F.
    Posts
    64
    This is the next line:
    code:
    _________________________________________________________
    ReportWriter.F1Book1.ODBCQuery pQuery, 1, 1, False, True, True, True, False, pRetCode
    _________________________________________________________



  4. #4
    Frenzied Member Jop's Avatar
    Join Date
    Mar 2000
    Location
    Amsterdam, the Netherlands
    Posts
    1,986
    I think the problem is in this part

    pQuery, 1, 1, False, True, True, True, False, pRetCode

    What kinda variable is pQuery? and pRetCode?
    and what kind of variables does it need?

    for example if I code a Function like this

    Code:
    Private Function DoError(bool As Boolean)
    
    'and you pass it a string:
    
    Call DoError("yes")
    'it'll result in a type mismatch.
    So check if you pass it the right variables.
    Jop - validweb.nl

    Alcohol doesn't solve any problems, but then again, neither does milk.

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