PC Review


Reply
Thread Tools Rate Thread

Combo box multiple values persistence

 
 
Mohammad Sibtain Arain
Guest
Posts: n/a
 
      12th Mar 2010
Along with other fields I have defined a field of lookup type of Value list
having "X";"Y";"Z"; i it with the multiselection option to select one or all
values.

The problem is when i created form using wizard option it gets save very
easily.
but
when i make a u.define form and add a text filed on form and set following
Data properties.
1. Data Source=Above defined field of the table;
2. Rowsource = Table of values i.e. (X,Y,Z).
3. Bound Column=0
4. Enables=Yes
5. Locked = No

When i try to save the records by assigning the combobox to the data field
it gives me "Data Type conversion error # 3421 and data just not save in the
proper record as well as mostly saved in last after skipping the error.
And I dont know what to do now? Please help if you can, i will be gratful....

Regards

M.S.Arain
 
Reply With Quote
 
 
 
 
Marshall Barton
Guest
Posts: n/a
 
      12th Mar 2010
Mohammad Sibtain Arain wrote:

>Along with other fields I have defined a field of lookup type of Value list
>having "X";"Y";"Z"; i it with the multiselection option to select one or all
>values.
>
>The problem is when i created form using wizard option it gets save very
>easily.
>but
>when i make a u.define form and add a text filed on form and set following
>Data properties.
>1. Data Source=Above defined field of the table;
>2. Rowsource = Table of values i.e. (X,Y,Z).
>3. Bound Column=0
>4. Enables=Yes
>5. Locked = No
>
>When i try to save the records by assigning the combobox to the data field
>it gives me "Data Type conversion error # 3421 and data just not save in the
>proper record as well as mostly saved in last after skipping the error.
>And I dont know what to do now?


You want the BoundColumn to be 1. Using 0 mean the value
will be the index of the selected row.

--
Marsh
MVP [MS Access]
 
Reply With Quote
 
Mohammad Sibtain Arain
Guest
Posts: n/a
 
      14th Mar 2010
I have tried your suggesstion but still the same problem is comming
and on following statement

rstAbsReg![Action Taken] = F_Action_Taken

Where rstAbsReg![Action Taken] is a table field of Lookup Type (Combol With
Multiselect Enabled)
&
F_Action_Taken is a Form Field
when i am trying to save the form value to the table field it shows me the
error which i explaied in my eralier post.
Regards

M.S.Arain


"Marshall Barton" wrote:

> Mohammad Sibtain Arain wrote:
>
> >Along with other fields I have defined a field of lookup type of Value list
> >having "X";"Y";"Z"; i it with the multiselection option to select one or all
> >values.
> >
> >The problem is when i created form using wizard option it gets save very
> >easily.
> >but
> >when i make a u.define form and add a text filed on form and set following
> >Data properties.
> >1. Data Source=Above defined field of the table;
> >2. Rowsource = Table of values i.e. (X,Y,Z).
> >3. Bound Column=0
> >4. Enables=Yes
> >5. Locked = No
> >
> >When i try to save the records by assigning the combobox to the data field
> >it gives me "Data Type conversion error # 3421 and data just not save in the
> >proper record as well as mostly saved in last after skipping the error.
> >And I dont know what to do now?

>
> You want the BoundColumn to be 1. Using 0 mean the value
> will be the index of the selected row.
>
> --
> Marsh
> MVP [MS Access]
> .
>

 
Reply With Quote
 
Marshall Barton
Guest
Posts: n/a
 
      14th Mar 2010
Sorry, but I don't know how to deal with multi select combo
boxes in VBA, especially for a lookup field. Personally, I
vehemently object to both lookup up and multi valued fields
in general. Combining them just goes beyond my mental
capacity to unravel what values are stored in which hidden
table. The Value of the field is a recordset so the code is
nothing like a normal combo box. I could buy into a user
interface that has a multi select combo box if I could do it
without the secret tables/relationships, but the new combo
box only works with the invisible structures.

Maybe someone else has unraveled these things and can come
to your assistence.
--
Marsh
MVP [MS Access]


Mohammad Sibtain Arain wrote:
>I have tried your suggesstion but still the same problem is comming
> and on following statement
>
>rstAbsReg![Action Taken] = F_Action_Taken
>
>Where rstAbsReg![Action Taken] is a table field of Lookup Type (Combol With
>Multiselect Enabled)
>&
>F_Action_Taken is a Form Field
>when i am trying to save the form value to the table field it shows me the
>error which i explaied in my eralier post.
>
>
>"Marshall Barton" wrote:
>> Mohammad Sibtain Arain wrote:
>> >Along with other fields I have defined a field of lookup type of Value list
>> >having "X";"Y";"Z"; i it with the multiselection option to select one or all
>> >values.
>> >
>> >The problem is when i created form using wizard option it gets save very
>> >easily.
>> >but
>> >when i make a u.define form and add a text filed on form and set following
>> >Data properties.
>> >1. Data Source=Above defined field of the table;
>> >2. Rowsource = Table of values i.e. (X,Y,Z).
>> >3. Bound Column=0
>> >4. Enables=Yes
>> >5. Locked = No
>> >
>> >When i try to save the records by assigning the combobox to the data field
>> >it gives me "Data Type conversion error # 3421 and data just not save in the
>> >proper record as well as mostly saved in last after skipping the error.
>> >And I dont know what to do now?

>>
>> You want the BoundColumn to be 1. Using 0 mean the value
>> will be the index of the selected row.

 
Reply With Quote
 
Marshall Barton
Guest
Posts: n/a
 
      15th Mar 2010
Mohammad Sibtain Arain wrote:

>did i make myself while explaining the scenario



If you do NOT have a lookup field AND you are NOT using a
multi select combo box, then you were not clear about
whatever you were trying to describe.

If you really are using a lookup field with a multi select
combo box, then I can not help.

--
Marsh
MVP [MS Access]
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple Combo Box Values Rebeca Microsoft Access Reports 2 26th Dec 2008 10:25 PM
Combo box with multiple values but no logic mmcsassin Microsoft Powerpoint 1 30th Jul 2007 04:38 PM
Combo Box Value that acts like multiple values uztwilightzone@gmail.com Microsoft Access Forms 1 26th Jun 2007 08:10 PM
multiple values in listbox or combo box? TracyG Microsoft Access 4 7th Jun 2004 07:21 AM
Displaying more multiple values in combo box. Max Microsoft Access Forms 2 5th Sep 2003 10:25 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:48 PM.