943,789 Members | Top Members by Rank

Ad:
Aug 16th, 2008
0

Checkboxes

Expand Post »
So here I am, with a new problem lol,
I have a form, and it saves its information in a random file. Now, is there any way to save the values of the check boxes in the file, and so as i can retrieve them later?

Private Sub cmdSave_Click()

    With reservation
        .chkboxA = chkboxA.Value
        .chkboxB = chkboxB.Value
        etc, etc,
        
    End With
     
    Put #fnum2, recno2, reservation
    
End Sub

Right now, when i run the code , it says I can't Get or Put an object reference variable/udt containing an object reference.
Am not really sure that it's the right way to proceed, and hope you guys can enlighten me


Thanks
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
breezyy is offline Offline
9 posts
since Aug 2008
Aug 16th, 2008
0

Re: Checkboxes

Hi,

Need to see the declarations and setting up
Like :
Dim recno2 as long

or
Dim Records(50) as long
How many records ?
etc..
In other words
a bit more details ...like the program
Them one could help.
f=freefile

Open #f as ....for ....
Reputation Points: 10
Solved Threads: 0
Newbie Poster
gsbr is offline Offline
9 posts
since Aug 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Visual Basic 4 / 5 / 6 Forum Timeline: Software Development
Next Thread in Visual Basic 4 / 5 / 6 Forum Timeline: display checkbox value from MS access in visual basic 6 form





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC