choose record from listbox

K

Kathleen Hover

Hi,

I'm trying to write code to choose a record from a listbox and display it in
a pre-existing form. When I run the code, the error I get is that it can't
find the form. The form is named correctly in the code. Is there something
I am missing here?

Thanks, Kathleen
 
V

Van T. Dinh

Find out *which* line of code that error out and check the spelling of
name(s) on this line of code.
 
K

Kathleen Speck

Hi,

It is spelled correctly. As a matter of fact, just to make sure, I renamed
the form and renamed/respelled it in all instances in the code. It still
can't find it. Is there someway that I am supposed to link this in a
different way than just referring to it? And, yes, the form is in the same
database as the code.

Thank you,
Kathleen
 
V

Van T. Dinh

The gist of my previous reply is that it is important to actually identify
the line of code that errored out and check from there since it is common
for us to think the error comes from one line of code while the error
actually comes from another line of code.

Did you actually use the debugging to identify the line of code that errored
out?
 
Top