Hi Klatuu,
Thanks for your quick response. I wanted to ask two questions:
1. Do I claim strFix as string?
2. I tried your code, vb complains the following code, saying, "run time
error 2450', can't find the form 'selectregion form' in the macro
expression
or vb code", but the form exists.
strfix = [Forms]![SelectRegion Form]![comboRegion].RowSource
Can you please help me with this?
Thanks so much again,
Sarah
Klatuu said:
SG,
Lets assume you want to remove "Atln" and "Central"
strFix = forms!MyForm!MyCombo.RowSource
strFix = Replace(strFix,"""Atln"";","")
strFix = Replace(strFix,"""Central"";","")
forms!MyForm!MyCombo.RowSource = StrFix
This works whether the rowsource is a list or an SQL statement. If you
are
using a query, then you would modify the query's SQL property much the
same
way.
:
Hi,
There is a combo box on the form1, row source type is value list , row
source is "<All>";"Atln";"East";"Central";"West"
How can I delete the at least 2 values from this list programmly.
Thanks,
Sarah