A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

unbound selection



 
 
Thread Tools Display Modes
  #1  
Old June 8th, 2004, 08:26 AM
Lapchien
external usenet poster
 
Posts: n/a
Default unbound selection

I'd like a command button, when pressed, to open a form based on the
contents of an unbound text box on a 'selection form'. So, for example, if
'15' was entered and the cmd button pressed, it would open form 15. Same
for other numbers too. Does this have to be a bound or unbound field?

Thanks,
Lap


  #2  
Old June 8th, 2004, 09:31 AM
Nikos Yannacopoulos
external usenet poster
 
Posts: n/a
Default unbound selection

Lap,

This is really addressing both this and your previous posting: I would use a
listbox instead, and use the Double Click event to open the selected form.
No additional text boxes requiring manual user entry, no command buttons.

HTH,
Nikos

"Lapchien" wrote in message
...
I'd like a command button, when pressed, to open a form based on the
contents of an unbound text box on a 'selection form'. So, for example,

if
'15' was entered and the cmd button pressed, it would open form 15. Same
for other numbers too. Does this have to be a bound or unbound field?

Thanks,
Lap




  #3  
Old June 8th, 2004, 10:53 AM
Lapchien
external usenet poster
 
Posts: n/a
Default unbound selection

Thanks - I'd like the user to press enter on the selection in the listbox -
but if I put this on the On Enter procedure I get an error when the form
initially opens...

Lap


"Nikos Yannacopoulos" wrote in message
...
Lap,

This is really addressing both this and your previous posting: I would use

a
listbox instead, and use the Double Click event to open the selected form.
No additional text boxes requiring manual user entry, no command buttons.

HTH,
Nikos

"Lapchien" wrote in message
...
I'd like a command button, when pressed, to open a form based on the
contents of an unbound text box on a 'selection form'. So, for example,

if
'15' was entered and the cmd button pressed, it would open form 15.

Same
for other numbers too. Does this have to be a bound or unbound field?

Thanks,
Lap






  #4  
Old June 9th, 2004, 08:25 AM
Nikos Yannacopoulos
external usenet poster
 
Posts: n/a
Default unbound selection

Lap,

The On Enter event occurs when you enter the control (as opposed to On
Exit), not when you hit the Enter button. Is this what confused you?
If you don't want to use the double click, you could always leave it blank
and use an additional command button. Or, you could use the On Exit event,
in which case your code will be fired by hitting the enter key as a result
of moving focus to the next control, but the same will happen with hitting
the tab key or moving focus to another control with the mouse.

Nikos

"Lapchien" wrote in message
...
Thanks - I'd like the user to press enter on the selection in the

listbox -
but if I put this on the On Enter procedure I get an error when the form
initially opens...

Lap


"Nikos Yannacopoulos" wrote in message
...
Lap,

This is really addressing both this and your previous posting: I would

use
a
listbox instead, and use the Double Click event to open the selected

form.
No additional text boxes requiring manual user entry, no command

buttons.

HTH,
Nikos

"Lapchien" wrote in message
...
I'd like a command button, when pressed, to open a form based on the
contents of an unbound text box on a 'selection form'. So, for

example,
if
'15' was entered and the cmd button pressed, it would open form 15.

Same
for other numbers too. Does this have to be a bound or unbound field?

Thanks,
Lap








 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 11:30 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.