Member Avatar for breezyy

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

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 ....

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.