Hi i copied the addnew recordset example from VB Help and changed the names to match my database. i am not sure why it is not working. maybe it's just a small little think but when u dont know it it's so frustrating.
Sub AddNewX()
Dim dbsNorthwind As Database
Dim rstEmployees As Recordset
Dim strFirstName As String
Dim strLastName As String
Set dbsNorthwind = OpenDatabase("Northwind.mdb")
Set rstEmployees = _
dbsNorthwind.OpenRecordset("Employees", dbOpenDynaset)
Sub AddNewX()
Dim dbsdb1 As Database
Dim rstEmployees As Recordset
Dim strFirstName As String
Dim strLastName As String
Set dbsdb1 = OpenDatabase("db1.mdb")
' gives a type mismatch error on the next line.
Set rstEmployees = _
dbsdb1.OpenRecordset("Employee List")
any help would be great
thanks
Sub AddNewX()
Dim dbsNorthwind As Database
Dim rstEmployees As Recordset
Dim strFirstName As String
Dim strLastName As String
Set dbsNorthwind = OpenDatabase("Northwind.mdb")
Set rstEmployees = _
dbsNorthwind.OpenRecordset("Employees", dbOpenDynaset)
Sub AddNewX()
Dim dbsdb1 As Database
Dim rstEmployees As Recordset
Dim strFirstName As String
Dim strLastName As String
Set dbsdb1 = OpenDatabase("db1.mdb")
' gives a type mismatch error on the next line.
Set rstEmployees = _
dbsdb1.OpenRecordset("Employee List")
any help would be great
thanks