Results 1 to 2 of 2

Thread: Data DatabaseName and RecordSource

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Aug 1999
    Location
    Preddvor, SI, Slovenia
    Posts
    18

    Question

    Hi

    Private Sub Form_Load()
    Data1.DatabaseName = App.Path & "\base.mdb"
    Data1.RecordSource = "Tabel"
    End Sub

    This database (base.mdb) has 18 records, but data1.database.recordsets("Table").RecordCount returns only 1 record if I load it in Data1. How can I load a database in Data control and set the Recordset in code, when application starts (Form_Load())? Thanks.

    Jure

  2. #2
    New Member
    Join Date
    Jun 2000
    Posts
    5
    This sounds almost exactly like what I wanted to do, and a code example is posted in the thread I started called "How to hardcode an Adodc?" Take a look and see if that helps. It worked for me.

    Deepfreeze

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