Link to home
Start Free TrialLog in
Avatar of RalphS007
RalphS007Flag for United States of America

asked on

Access 2007

I have a database that i created for the organization i work for, and I have set a few fields on the main table to allow multiple values to where they can check all that apply, but when we try to input data, it doesn't allow the selection to save.
Avatar of Scott McDaniel (EE MVE )
Scott McDaniel (EE MVE )
Flag of United States of America image

Do you get an error, or does the save just fail?
Avatar of Spidamonkey
Spidamonkey

multiselect should be set to true
Avatar of RalphS007

ASKER

In the data entry process, when i tick the boxes and click ok, the ok button doesn't do anything, but the cancel option works.
here's a screenshot.
screen.jpg
It works if i enter it directly in the table but not if i do it into the form.
Oh did i mention that it's a split database?
Do you need the multiselect to go into one field (eg. [REFERAL_TYPE]) or do you have seperate fields for each type (eg. [Email/Newsletter], [Facebook] etc.)

The easiest way to get it to work is to simply have a "Yes/No" data type for each type, and in your form simply make 9 checkboxes (using the checkbox tool in your toolbox) then label each checkbox (eg. Facebook) and then right click on each checkbox and click Properties then click the "Data" tabe and from the drop-down choose the field that relates to the checkbox.

I have attached an example database with a simple example of this. If you require the multiselected options to go into one field I suggest you use some VBA code to loop through the checked items. To assist you with that I would need a copy of form you are using.
example.accdb
all the values displayed there are listed in a single lookup field of a lookup table.

relationships-map.png
more specifically out of the entire relationship map that you see above the following map shows the 2 tables directly associated with that specific field.
relationship-map2.png
lookup field values
lookup-field-values.png
the lookup field values are the row source for the main table
ASKER CERTIFIED SOLUTION
Avatar of Scott McDaniel (EE MVE )
Scott McDaniel (EE MVE )
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial