Toggle Button stays pressed in A97

G

Guest

Hello all,

Using Access 97, I'm reading a file line by line.

The open file dialog and file reading code only starts up when a toggle
(command) button is pressed. My problem is the toggle button stays pressed
once the control returns to the form.

The program is very simple. Just read the file (line by line) and throw it
back into a label on the form. This is mostly testing, so it's not part of a
full app yet. Just checking concepts and trying code while I wait for the
pieces to come together.

I don't think the code would interfere with the button operation. I used
the On_Click event of the button to run the code. Even if no file is read (I
hit Cancel), the toggle still remains depressed.

Not sure if I need to use a property or something similar to 'popup' the
button.

Any help is appreciated.

Thanks,
Jay
 
R

Rick Brandt

Jay said:
Hello all,

Using Access 97, I'm reading a file line by line.

The open file dialog and file reading code only starts up when a
toggle (command) button is pressed. My problem is the toggle button
stays pressed once the control returns to the form.

A ToggleButton and a CommandButton are two different things. You are using the
former when you need to be using the latter.
 
G

Guest

Yeah, what my button is doing would be the definition of toggle...

Sometimes you need someone else to point out out your own stupidity. The
'Toggle' didn't even tip me off.

Thanks!

Jay
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top