Interview Question in Sql Server 2000


 

Interview Question :: Dim db as Database... Database as a datatype does not exist. Help me please

I am using Microsoft SQL Server 2000 (MSDE) and Microsoft Access 2003. I am using the onNotInList event for a combo box on a form. i got a snippet of code that allows you to add a value to a combo box/table if it does not exist. The problem is there is a line of vbcode from the snippet that says "Dim db As Database". "Database does not exist! The combo box is based on a table. Can anyone please show me either how do i get this snippet to work or show me a snippet that allows me to add new values to a combo box/table.

by ksk