S
Steven Greenberg
Greetings (again) all.
Well, I'm developing my skills more and more with using VBA (thanks to
great support on this newsgroups) and I have ventured into working with
custom navagation buttons. I am working out of the Access 2000 VBA Handbook
by Novalis (yeah everyone knows that book).
Well anyway, I am playing with creating the recordset clone so I can create
these "smart" nav buttons that disable themselves when at certain records.
(page 546). I created the functions and the buttons and the coding and when
I tried to run it I got a type mismatch error which pointed to my
assignment line.
I then tried a simple example on another form. just the basics:
form linked to a table, command button who's click event is as follows:
dim rstClone as recordset
set rstclone = me.recordsetclone
that's all! When I run the button, I get the same debug message of type
mismatch where the debugger points to the same assignment line. the
rstclone says "=nothing" when I hilight it.
What am I missing here? Do I have to set any special reference that I
haven't done? should this simple code be working like it is? Not that my
life depends on learning this, but I think it would be very handy to know
how to do it.
Thanks to all in advance
Steve
Well, I'm developing my skills more and more with using VBA (thanks to
great support on this newsgroups) and I have ventured into working with
custom navagation buttons. I am working out of the Access 2000 VBA Handbook
by Novalis (yeah everyone knows that book).
Well anyway, I am playing with creating the recordset clone so I can create
these "smart" nav buttons that disable themselves when at certain records.
(page 546). I created the functions and the buttons and the coding and when
I tried to run it I got a type mismatch error which pointed to my
assignment line.
I then tried a simple example on another form. just the basics:
form linked to a table, command button who's click event is as follows:
dim rstClone as recordset
set rstclone = me.recordsetclone
that's all! When I run the button, I get the same debug message of type
mismatch where the debugger points to the same assignment line. the
rstclone says "=nothing" when I hilight it.
What am I missing here? Do I have to set any special reference that I
haven't done? should this simple code be working like it is? Not that my
life depends on learning this, but I think it would be very handy to know
how to do it.
Thanks to all in advance
Steve