•
•
•
•
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 374,006 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 2,741 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:
Views: 471 | Replies: 2
![]() |
•
•
Join Date: Mar 2008
Posts: 17
Reputation:
Rep Power: 1
Solved Threads: 0
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.
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.
•
•
Join Date: Mar 2008
Posts: 17
Reputation:
Rep Power: 1
Solved Threads: 0
After some persistence, I was able to create/insert records to the data file.
But, I'm not having any luck with the 2nd part of my assignment, which is to create a form permitting a user to view all records in the data file via populating records to a list box. I also have to use error handling when opening the data file.
Can anyone get me started in the right direction for this added task? I've added a button and list box to a form, but can't get the records to load...
Any assistance is greatly appreciated.
But, I'm not having any luck with the 2nd part of my assignment, which is to create a form permitting a user to view all records in the data file via populating records to a list box. I also have to use error handling when opening the data file.
Can anyone get me started in the right direction for this added task? I've added a button and list box to a form, but can't get the records to load...
Any assistance is greatly appreciated.
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb MS Access and FileMaker Pro Marketplace
•
•
•
•
access advice business code combo cult of the dead cow daniweb data data protection data transfer database drive dropdownlist encryption europe files flash flv forensic forensics fun google hacking hard hardware help hitachi hp industrial espionage information internet it linux media module net news privacy protection reuse search security storage streaming terabyte tutorials and more tv video web wikipedia
- Send data on a serial port (C++)
- Forms in Random access files (Visual Basic 4 / 5 / 6)
- Creating a VB dll (Visual Basic 4 / 5 / 6)
- Need help to padding the word to create flat files (Shell Scripting)
- Open In New Window Php (PHP)
- Internet Explorer & Windows Explorer (desktop shortcuts) Won't Load! (Viruses, Spyware and other Nasties)
- a non-destructive repartitioning tool? (*nix Software)
- Creating STL files From vertex and polygon data created in IDL (Computer Science and Software Design)
- Error listing files... (C++)
- Set, View, Change, or Remove Special Permissions for Files and Folders in Windows XP (Windows tips 'n' tweaks)
Other Threads in the MS Access and FileMaker Pro Forum
- Previous Thread: Pass arguments to a Function
- Next Thread: One to Many ?


Linear Mode