J
Jaime
I'm using Office 2007. I have done a similar operation in a previous version
of Access but for whatever reason this is not working in 2007.
I'm trying to filter the values in a combo based on selection of a previous
combo. The problem is that:
i) i'm unable to set the value to an empty string and so it will always keep
the last value visible
ii) the filter works the first time. However once I change the previous
combo value again ... the filtering does not work. It keeps the old value.
I actually have to use the "refresh all" button available in the menu.
Here's what I have done:
combo1 (name = ReleaseName) has 3 products (A, B, C)
combo2 (ReleaseVersion) should be filtered depending on what I choose as
release name:
In combo1, i've done the following:
I'm launching the "After Update" Event which looks like this:
Option Compare Database
Private Sub ReleaseName_AfterUpdate()
Me!ReleaseVersion.Value = ""
Me.ReleaseVersion.Requery
End Sub
Any help will be greatly appreciate.
btw ... the ReleaseVersion executes the query (row source):
SELECT Release.ReleaseVersion, Release.ReleaseName
FROM Release
WHERE (((Release.ReleaseName)=[Forms]![Product]![ReleaseName]));
~ Jaime"
of Access but for whatever reason this is not working in 2007.
I'm trying to filter the values in a combo based on selection of a previous
combo. The problem is that:
i) i'm unable to set the value to an empty string and so it will always keep
the last value visible
ii) the filter works the first time. However once I change the previous
combo value again ... the filtering does not work. It keeps the old value.
I actually have to use the "refresh all" button available in the menu.
Here's what I have done:
combo1 (name = ReleaseName) has 3 products (A, B, C)
combo2 (ReleaseVersion) should be filtered depending on what I choose as
release name:
In combo1, i've done the following:
I'm launching the "After Update" Event which looks like this:
Option Compare Database
Private Sub ReleaseName_AfterUpdate()
Me!ReleaseVersion.Value = ""
Me.ReleaseVersion.Requery
End Sub
Any help will be greatly appreciate.
btw ... the ReleaseVersion executes the query (row source):
SELECT Release.ReleaseVersion, Release.ReleaseName
FROM Release
WHERE (((Release.ReleaseName)=[Forms]![Product]![ReleaseName]));
~ Jaime"