| | |
Random Access Files Help!!
![]() |
•
•
Join Date: Mar 2006
Posts: 1
Reputation:
Solved Threads: 0
Hello, im having problems with using a RAF in my project.
i have 5 fields on my form three of wich hold integers and the other two hold strings, i want the data to then be sent via a "send button" to the random access file.
here is the code wich i belive should work..
Private Sub sendstustory_Click()
Dim story As storydata
story.daydate = stdd.Text
story.monthdate = stmm.Text
story.yeardate = styy.Text
story.storyhead = StudentHeader.Text
story.mainstory = stustorytxtsnd.Text
Open "c:\storyholder" For Random As #1 Len = Len(story)
Put #1, , story
Close #1
note that i also created my own data type for these*
basicaly it just isnt working when i execute the program everything runs smooth. but nothing appears in the RAF,
and it isn't throwing any errors.
help would b much appreciated..
i have 5 fields on my form three of wich hold integers and the other two hold strings, i want the data to then be sent via a "send button" to the random access file.
here is the code wich i belive should work..
Private Sub sendstustory_Click()
Dim story As storydata
story.daydate = stdd.Text
story.monthdate = stmm.Text
story.yeardate = styy.Text
story.storyhead = StudentHeader.Text
story.mainstory = stustorytxtsnd.Text
Open "c:\storyholder" For Random As #1 Len = Len(story)
Put #1, , story
Close #1
note that i also created my own data type for these*
basicaly it just isnt working when i execute the program everything runs smooth. but nothing appears in the RAF,
and it isn't throwing any errors.
help would b much appreciated..
![]() |
Similar Threads
- Forms in Random access files (Visual Basic 4 / 5 / 6)
- Deleting from Random Access File? (VB.NET)
- Creating a Address Book using Random Access Files (Visual Basic 4 / 5 / 6)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: Check digit in VB
- Next Thread: VB and Ms Access
| Thread Tools | Search this Thread |
* 6 429 2007 access activex add age application basic beginner birth bmp calculator cd cells.find click client code college component connection connectionproblemusingvb6usingoledb copy creat ctrl+f data database datareport date delete dissertations dissertationthesis dissertationtopic edit error excel excelmacro file filename form hardware header iamthwee image inboxinvb internetfiledownload keypress label listbox listview liveperson login looping machine microsoft movingranges number objectinsert open oracle password prime program prompt range-objects readfile reading record refresh remotesqlserverdatabase report save search sendbyte sites sort sql sql2008 sqlserver subroutine tags textbox time urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web window windows






