Results 1 to 3 of 3
  1. #1
    Lounger
    Join Date
    Feb 2001
    Location
    Torn between Kent & Essex, England
    Posts
    38
    Thanks
    0
    Thanked 0 Times in 0 Posts

    OpenRecordset (AC 2K)

    Can anyone explain why when I try to run:

    set rstTemp = CurrentDB.OpenRecordset("tblTemp")

    I get a type mismatch. I've tried Dim'ing rstTemp as both RecordSet and TableDef but get the same.

    Having a bad head day today........

    Regards,
    Gavin

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: OpenRecordset (AC 2K)

    Try <font face="Georgia">Dim rstTemp As DAO.Recordset</font face=georgia>

    (Do you have a reference to DAO (Microsoft DAO ... Object Library) in Tools/References... ?)

  3. #3
    Lounger
    Join Date
    Feb 2001
    Location
    Torn between Kent & Essex, England
    Posts
    38
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: OpenRecordset (AC 2K)

    Of course!

    Thank you, Hans. <img src=/S/cheers.gif border=0 alt=cheers width=30 height=16>

    Regards,
    Gavin

Posting Permissions

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