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  

Combo box in Forms



 
 
Thread Tools Display Modes
  #1  
Old March 21st, 2007, 04:50 PM posted to microsoft.public.access.forms
GMAC
external usenet poster
 
Posts: 38
Default Combo box in Forms

I am trying to create a data entry form that requires a lot of information
like training codes and job types. All information is saved to a table "Data
Entry". The problem I am having is where I want the user to be able to select
a job type or training code from a combo box instead of trying to remember
what each one is. I have a table listing all job types and a table listing
all training codes. All tables share relationships. When I go to tab through
the created form, entering all required info and selecting items from the
combo box, I get a error saying value for that field (job types or training
code) cannot have a null value. The table "Data Entry" has only training
codes and job types that have been entered. The table "Job Types" lists every
job type and the table 'training codes" lists all training codes. This is why
I need to pull from those tables. Is there a way this can be done?
  #2  
Old March 22nd, 2007, 04:43 AM posted to microsoft.public.access.forms
Jeff
external usenet poster
 
Posts: 26
Default Combo box in Forms

gday

Hope I understand you correctly

refer to the property dialog for each of the combo boxes in the Data Entry
form open in Design Mode:
Form:-
Record source - Data Entry (table or query name)
ComboBox for JobTypes:-
ControlSource - JobType (Field name from Data Entry Table or Query)
Row Source Type - Table/Query
Row Source - SELECT JobType FROM DataEntry (query)
Column Count - 1 (if only wanting the one field displayed in the
dropdown)
Column Widths - (use this to set the width of the columns displaying in
the drop down if more than one column or field selected in the RowSource)
Bound Column - 1
etc

Combobox for TrainingCodes:-
similar to JobTypes if you are getting the idea...

tip! try using non spaced names for objects or use an "Underline" to
separate names if you must. It makes it easier to code and refer to objects
and also avoid mistakes. ie Data Entry shoile be either DataEntry or
Data_Entry

hope this helps a little.....

cheers
jeff

"GMac" wrote in message
...
I am trying to create a data entry form that requires a lot of information
like training codes and job types. All information is saved to a table
"Data
Entry". The problem I am having is where I want the user to be able to
select
a job type or training code from a combo box instead of trying to remember
what each one is. I have a table listing all job types and a table listing
all training codes. All tables share relationships. When I go to tab
through
the created form, entering all required info and selecting items from the
combo box, I get a error saying value for that field (job types or
training
code) cannot have a null value. The table "Data Entry" has only training
codes and job types that have been entered. The table "Job Types" lists
every
job type and the table 'training codes" lists all training codes. This is
why
I need to pull from those tables. Is there a way this can be done?



 




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 02:04 AM.


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