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  

Missing something basic - Combobox updating table



 
 
Thread Tools Display Modes
  #1  
Old December 29th, 2007, 05:01 PM posted to microsoft.public.access.forms
DiverGuy
external usenet poster
 
Posts: 4
Default Missing something basic - Combobox updating table

Working with Access 2003. I have a table of users, their phone numbers, and
job classes called tblUsers. A query extracts that information into
qryUsers. I have a form that uses the query as the record source called
frmUsers. The form only contains a single combobox so someone can select the
user for which they wish to view data in other forms. It works fine for the
first user on the list in the combobox. Selecting any other user in the
combobox causes the first record in the table to change to that user's name.
For example:

The table and the query both contain:
Timmy
Bobby
Billy
Bubba

The form's combobox box initially displays the names in the order shown
above. Selecting any name other than Timmy, changes Timmy's entry in the
table to Bobby or Billy or Bubba or whatever was selected. Timmy's name then
no longer appears on the combobox list.

I have tried to lock the table's name column down to "no duplicates". That
worked while the form is displayed and it prevented the name changes but when
the form is closed an error message appears that a duplicate entry was
detected and it was unable to update the table.

Also, tried changing the Allow Edits field in Properties to No but that
disabled the ability to select another name.

Apparently, I'm missing something very basic. I only want the combobox to
display the names. No editing should take place. Any thoughts, suggestions,
or guidance will be very much appreciated.

Thanks,
  #2  
Old December 29th, 2007, 06:22 PM posted to microsoft.public.access.forms
Douglas J. Steele
external usenet poster
 
Posts: 9,313
Default Missing something basic - Combobox updating table

Sounds as though your combo box is bound to the form's underlying
recordsource. Based on what you're describing, the form itself probably
doesn't need to be bound, much less the combo box.

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no private e-mails, please)


"DiverGuy" wrote in message
...
Working with Access 2003. I have a table of users, their phone numbers,
and
job classes called tblUsers. A query extracts that information into
qryUsers. I have a form that uses the query as the record source called
frmUsers. The form only contains a single combobox so someone can select
the
user for which they wish to view data in other forms. It works fine for
the
first user on the list in the combobox. Selecting any other user in the
combobox causes the first record in the table to change to that user's
name.
For example:

The table and the query both contain:
Timmy
Bobby
Billy
Bubba

The form's combobox box initially displays the names in the order shown
above. Selecting any name other than Timmy, changes Timmy's entry in the
table to Bobby or Billy or Bubba or whatever was selected. Timmy's name
then
no longer appears on the combobox list.

I have tried to lock the table's name column down to "no duplicates".
That
worked while the form is displayed and it prevented the name changes but
when
the form is closed an error message appears that a duplicate entry was
detected and it was unable to update the table.

Also, tried changing the Allow Edits field in Properties to No but that
disabled the ability to select another name.

Apparently, I'm missing something very basic. I only want the combobox to
display the names. No editing should take place. Any thoughts,
suggestions,
or guidance will be very much appreciated.

Thanks,



  #3  
Old December 29th, 2007, 06:41 PM posted to microsoft.public.access.forms
DiverGuy
external usenet poster
 
Posts: 4
Default Missing something basic - Combobox updating table

Yep, that was it! I removed the Control Source from the combobox's
properties and it started working as desired. Knew it was something simple I
had overlooked. Thanks for the help.






"Douglas J. Steele" wrote:

Sounds as though your combo box is bound to the form's underlying
recordsource. Based on what you're describing, the form itself probably
doesn't need to be bound, much less the combo box.

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no private e-mails, please)


"DiverGuy" wrote in message
...
Working with Access 2003. I have a table of users, their phone numbers,
and
job classes called tblUsers. A query extracts that information into
qryUsers. I have a form that uses the query as the record source called
frmUsers. The form only contains a single combobox so someone can select
the
user for which they wish to view data in other forms. It works fine for
the
first user on the list in the combobox. Selecting any other user in the
combobox causes the first record in the table to change to that user's
name.
For example:

The table and the query both contain:
Timmy
Bobby
Billy
Bubba

The form's combobox box initially displays the names in the order shown
above. Selecting any name other than Timmy, changes Timmy's entry in the
table to Bobby or Billy or Bubba or whatever was selected. Timmy's name
then
no longer appears on the combobox list.

I have tried to lock the table's name column down to "no duplicates".
That
worked while the form is displayed and it prevented the name changes but
when
the form is closed an error message appears that a duplicate entry was
detected and it was unable to update the table.

Also, tried changing the Allow Edits field in Properties to No but that
disabled the ability to select another name.

Apparently, I'm missing something very basic. I only want the combobox to
display the names. No editing should take place. Any thoughts,
suggestions,
or guidance will be very much appreciated.

Thanks,




 




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 05:29 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.