G
Guest
There is no code in any of the events with in this form. The name in the
Control Source is the field name of the table = Ret_Military.
This is the sequence of events:
1.) first go into the personal data base
2.) Select a name from the data base
3.) press button to go into the personnel Information
4.) answer a Y or N question on one of the combox fields (works fine and
writes corrently to the table) uses a query to sort:
SELECT DISTINCTROW tblPersstatistics.*, tblPersstatistics.LAST_NAME AS
LastNameIndex, tblPersstatistics.FIRST_NAME AS FirstNameIndex
FROM tblPersstatistics
ORDER BY tblPersstatistics.LAST_NAME, tblPersstatistics.FIRST_NAME;
5.) If you answer Y to the previous question then another combox comes up.
Uses the same query again:
SELECT DISTINCTROW tblPersstatistics.*, tblPersstatistics.LAST_NAME AS
LastNameIndex, tblPersstatistics.FIRST_NAME AS FirstNameIndex
FROM tblPersstatistics
ORDER BY tblPersstatistics.LAST_NAME, tblPersstatistics.FIRST_NAME;
6.) Select from the value list as indecated from below (This does not work
and only writes to the first sorted record)
The name and the control name are different:
Name = cbxMilitary
Control Source = Ret_Military(field name on table)
I use the Row Source Type = Value List
And the Row Source = '''';''Army";"Navy";"Air Force"
each of these comes up fine in the pull down and select of the combox, but
again it only writes to the first sorted record.
What am I doing wrong.
could it be that because I go through two comboxes that this might be
tripping to the first sorted record? and if so then how can I get around it.
Please note that I have another question out there that is the same, but
because I don't get a response until the evenings and I work during the day I
need to resolve this problem quickly for I am on a dead line.
Please help Thank You!
Control Source is the field name of the table = Ret_Military.
This is the sequence of events:
1.) first go into the personal data base
2.) Select a name from the data base
3.) press button to go into the personnel Information
4.) answer a Y or N question on one of the combox fields (works fine and
writes corrently to the table) uses a query to sort:
SELECT DISTINCTROW tblPersstatistics.*, tblPersstatistics.LAST_NAME AS
LastNameIndex, tblPersstatistics.FIRST_NAME AS FirstNameIndex
FROM tblPersstatistics
ORDER BY tblPersstatistics.LAST_NAME, tblPersstatistics.FIRST_NAME;
5.) If you answer Y to the previous question then another combox comes up.
Uses the same query again:
SELECT DISTINCTROW tblPersstatistics.*, tblPersstatistics.LAST_NAME AS
LastNameIndex, tblPersstatistics.FIRST_NAME AS FirstNameIndex
FROM tblPersstatistics
ORDER BY tblPersstatistics.LAST_NAME, tblPersstatistics.FIRST_NAME;
6.) Select from the value list as indecated from below (This does not work
and only writes to the first sorted record)
The name and the control name are different:
Name = cbxMilitary
Control Source = Ret_Military(field name on table)
I use the Row Source Type = Value List
And the Row Source = '''';''Army";"Navy";"Air Force"
each of these comes up fine in the pull down and select of the combox, but
again it only writes to the first sorted record.
What am I doing wrong.
could it be that because I go through two comboxes that this might be
tripping to the first sorted record? and if so then how can I get around it.
Please note that I have another question out there that is the same, but
because I don't get a response until the evenings and I work during the day I
need to resolve this problem quickly for I am on a dead line.
Please help Thank You!