• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 435
  • Last Modified:

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.
0
RalphS007
Asked:
RalphS007
1 Solution
 
Scott McDaniel (Microsoft Access MVP - EE MVE )Infotrakker SoftwareCommented:
Do you get an error, or does the save just fail?
0
 
SpidamonkeyCommented:
multiselect should be set to true
0
 
RalphS007Author Commented:
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.
0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
RalphS007Author Commented:
here's a screenshot.
screen.jpg
0
 
RalphS007Author Commented:
It works if i enter it directly in the table but not if i do it into the form.
0
 
RalphS007Author Commented:
Oh did i mention that it's a split database?
0
 
NerdsOfTechTechnology ScientistCommented:
0
 
AxxedeCommented:
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
0
 
RalphS007Author Commented:
all the values displayed there are listed in a single lookup field of a lookup table.

relationships-map.png
0
 
RalphS007Author Commented:
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
0
 
RalphS007Author Commented:
lookup field values
lookup-field-values.png
0
 
RalphS007Author Commented:
the lookup field values are the row source for the main table
0
 
Scott McDaniel (Microsoft Access MVP - EE MVE )Infotrakker SoftwareCommented:
You haven't correctly setup your MultiValue field. If you had, your lookup selections would show checkboxes beside them.

See this guide: http://office.microsoft.com/en-us/access/HA012337221033.aspx

And PLEASE look into "nameing conventions" for your table/column names. Naming a field "How did you hear about this volunteer program" is wrong on so many levels it's hard to even start ;). Instead, you should name it something like lngReferralSource - no spaces, and it tells you immediately what type of data is stored (a Long value) and what that data is supposed to do. Also, when your app becomes more complex, you'll have a much easier time working with queries, reports etc if you maintain a standardized nameing convention.
0

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now