Hi,
I am writing code for a project I am working on using Accewss 2000, and
when I choose an item from a drop-down box, I want to delete it form
the table it is getting the info from.
I am using the following code:
'Dim dbGiant As Database
'Dim rsGiant As Recordset
'Set dbMyDB = OpenDatabase("Giants_Sign-UP.mdb")
'Set dbGiant = CurrentDb()
'Set rsGiant = dbGiant.OpenRecordSet("school_all", dbOpenDynaset)
'If Not rsGiant.EOF Then rsGiant.MoveFirst
'Do While Not rsGiant.EOF
'lstRecords.AddItem rsMyRS!Name
'lstRecords.ItemData(lstRecords.NewIndex) = rsMyRS!ID
' If Me!cmb_session_date.Value = rsGiant!school_name Then
' Debug.Print "Match"
' rsGiant.MoveNext
'Loop
But, everytime I invoke it, I come up with the following error when I
have the first 2 lines uncommented:
Complie Error: User-defined type not defined
Now, I wil admit I learned Access using 97, and this is 2000, and I am
not full up on the new way of 2000. But, I have an older project that
I converted to use with 2000, and have almost the same code, and that
works.
Another qustion, excuse my naivity, but when I do help, it gives me
this code, which I fully understand, and other code using OCDBC.
If someone can help me either point to a place to help me understand
this, or just help me to an understanding of how the NEW Access works?
Joe R.