User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the MS Access and FileMaker Pro section within the Web Development category of DaniWeb, a massive community of 391,821 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,639 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our MS Access and FileMaker Pro advertiser:

Creating data files

Join Date: Mar 2008
Posts: 17
Reputation: clueless101 is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
clueless101 clueless101 is offline Offline
Newbie Poster

Creating data files

  #1  
Apr 7th, 2008
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
Last edited by clueless101 : Apr 7th, 2008 at 11:59 am.
AddThis Social Bookmark Button
Reply With Quote  
All times are GMT -4. The time now is 5:48 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC