Benultra2
|
| Posted: 11/05/2004, 6:25 PM |
|
Hi
I am using a Listbox for a Field that contains text (EG Credit Card, Cheque, Cash, etc). The problem I am getting is that when I go to update the records, the listbox does not default to the current value in the record. Note the values in the listbox are coming from a Table and are not a list of values in codecharge. Has anyone experienced this problem before....
Ben
|
|
|
 |
Don Safar
|
| Posted: 11/05/2004, 7:48 PM |
|
Make sure you have the control source value set to the database field in
properties.
"Benultra2" <Benultra2@forum.codecharge> wrote in message
news:6418c360cb5404@news.codecharge.com...
> Hi
>
> I am using a Listbox for a Field that contains text (EG Credit Card,
> Cheque,
> Cash, etc). The problem I am getting is that when I go to update the
> records,
> the listbox does not default to the current value in the record. Note the
> values in the listbox are coming from a Table and are not a list of values
> in
> codecharge. Has anyone experienced this problem before....
>
> Ben
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
|
|
 |
DonB
|
| Posted: 11/05/2004, 7:53 PM |
|
And that the Data Type matches that of the Bound Column (that is, the
datatype of the column in the database).
--
DonB
http://www.gotodon.com/ccbth
"Don Safar" <donsafar@hotmail.com> wrote in message
news:cmhhi2$non$1@news.codecharge.com...
> Make sure you have the control source value set to the database field in
> properties.
>
> "Benultra2" <Benultra2@forum.codecharge> wrote in message
>news:6418c360cb5404@news.codecharge.com...
> > Hi
> >
> > I am using a Listbox for a Field that contains text (EG Credit Card,
> > Cheque,
> > Cash, etc). The problem I am getting is that when I go to update the
> > records,
> > the listbox does not default to the current value in the record. Note
the
> > values in the listbox are coming from a Table and are not a list of
values
> > in
> > codecharge. Has anyone experienced this problem before....
> >
> > Ben
> > ---------------------------------------
> > Sent from YesSoftware forum
> > http://forums.codecharge.com/
> >
>
>
|
|
|
 |
Benultra2
|
| Posted: 11/07/2004, 6:35 PM |
|
Hi DonB
I checked that and I do have the Bound Column set the the same column. The strange thing is if i set the it in code like the example below, it will default to that value, but if it gets the text value from a database it does not work.
Example
Payments.ListBox1.value = "Credit Card" ' Does work
But have the source Control set to Payment_Method Column, and it wont default..
Even tried setting the value as a Hidden form field and setting the value of the listbox to it. Still would not default.
|
|
|
 |
|