I need to create a data file called students.dat and insert a few records into it.
I need (3) fields: 1) student id no. 2) last name 3) first name
I thought it would be pretty straight forward, but I get a compile error: Invalid Outside Procedure and "students.dat" is highlighted. Can anyone help me out on this? Thanks in advance.
Here is my code thus far.
Option Compare Database
Option Explicit
' Create Students Data file
Open "students.dat" For Output As #1
Write #1, "123-00", "Joan", "Blake"
Write #2, "560-05", "Mary", "Smith"
Close 2