Scelta fra due opzioni

B

Bernd Smits

Ciao,
ho un form che è una sorta di questionario o scheda personale da compilare e
una delle caselle presenti è il 'Sesso' e vorrei poter dare la possibilità
all'utente di scegliere tra M e F e quindi su M o F e che poi la casella si
compila con l'opzione scelta e quando salvo il questionario in una tabella
viene salvato nella casella del Sesso lìopzione scelta.
Come posso fare? C'è qualche oggetto particolare che faccia questa cosa o
devo semplicemente usare una combobox? Se sì, come?
Grazie
Bernd
 
M

Michel Walsh

Hi,


Choose a combo box if there is more than a few options and if the
options are fixed, none could be added later on. As example, for sex, you
can get a FRAME, or OPTION GROUP. Add it while the Wizard of controls is
active. In the first page of the wizard, supply the two option, M and F, in
two lines (one per line). Take a default selection, remember the assigned
numerical values (like 1 for M and 2 for F) and finish the wizard. To get
the selected sex, use the FRAME value, like:

Me.Frame0.Value = ...


or

... = Me.Frame0.Value



Hoping it may help,
Vanderghast, Access MVP
 

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