Results 1 to 6 of 6

Thread: [RESOLVED] error 3265

Threaded View

  1. #1

    Thread Starter
    Member kirara22's Avatar
    Join Date
    Feb 2009
    Posts
    54

    Resolved [RESOLVED] error 3265

    how to generate automatic IDnumber of customer?


    i try the following code:

    Code:
    Const DBPATH = "dataBASE.mdb"
    Dim cn As New ADODB.Connection, rs As New ADODB.Recordset
    cn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & DBPATH
    
    SQL = "SELECT MAX(IDNUMBER) FROM table1"
    
    newID_Number.caption = rs.Fields("LAST_ID_nuMBER") + 1
    
    End Sub
    i've got he following error mesage.
    item cannot be found in the collection corresponding to the requested name or ordinal.

    sorry im really new vb

    tnx
    Last edited by kirara22; Mar 16th, 2009 at 04:44 AM.

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