G
Guest
I have a form with a Y or N question. When I select Y I bring up a combox
form were you select which branch.
both form are attached to the same table
For some reason only the first sorted record gets updated with the branch
that you choose.
example:
Select the Personnel button
select a name smith
press the personnel information button
Personnel information form comes up
Select a y or n option on the form (Y or N gets written to each record
correctly) by using
row source Type = value list
Row Source "";"Y";"N"
Query SQL
SELECT DISTINCTROW tblPersstatistics.*, tblPersstatistics.LAST_NAME AS
LastNameIndex, tblPersstatistics.FIRST_NAME AS FirstNameIndex
FROM tblPersstatistics
ORDER BY tblPersstatistics.LAST_NAME, tblPersstatistics.FIRST_NAME;
VBA Statement
Private Sub cbxRet_MIL_Click()
Dim Picky As String
Picky = Me!cbxRet_MIL & vbNullString
If Me.Dirty Then
Me.Dirty = False
End If
If Picky = "Y" Then
DoCmd.OpenForm "frmPersMilitary", acNormal
Else
Me.[Military] = Null
End If
End Sub
When you select Y a combox comes up
Select which branch you want (only the first sorted record gets updated)
using
row source Type = value list
Row Source "Army";"Navy";"Air Force"
Query SQL
SELECT DISTINCTROW tblPersstatistics.*, tblPersstatistics.STATUS
FROM tblPersstatistics
ORDER BY tblPersstatistics.STATUS;
I want all records for the field of the branch to be updated that you have
selected
I have a select query for the first form (this works correctly Y or N
question)
I have another select query for the second form (combox) (this does not work
correctly) only updates first sorted record.
I hope this is enough information
Please help thank You!
form were you select which branch.
both form are attached to the same table
For some reason only the first sorted record gets updated with the branch
that you choose.
example:
Select the Personnel button
select a name smith
press the personnel information button
Personnel information form comes up
Select a y or n option on the form (Y or N gets written to each record
correctly) by using
row source Type = value list
Row Source "";"Y";"N"
Query SQL
SELECT DISTINCTROW tblPersstatistics.*, tblPersstatistics.LAST_NAME AS
LastNameIndex, tblPersstatistics.FIRST_NAME AS FirstNameIndex
FROM tblPersstatistics
ORDER BY tblPersstatistics.LAST_NAME, tblPersstatistics.FIRST_NAME;
VBA Statement
Private Sub cbxRet_MIL_Click()
Dim Picky As String
Picky = Me!cbxRet_MIL & vbNullString
If Me.Dirty Then
Me.Dirty = False
End If
If Picky = "Y" Then
DoCmd.OpenForm "frmPersMilitary", acNormal
Else
Me.[Military] = Null
End If
End Sub
When you select Y a combox comes up
Select which branch you want (only the first sorted record gets updated)
using
row source Type = value list
Row Source "Army";"Navy";"Air Force"
Query SQL
SELECT DISTINCTROW tblPersstatistics.*, tblPersstatistics.STATUS
FROM tblPersstatistics
ORDER BY tblPersstatistics.STATUS;
I want all records for the field of the branch to be updated that you have
selected
I have a select query for the first form (this works correctly Y or N
question)
I have another select query for the second form (combox) (this does not work
correctly) only updates first sorted record.
I hope this is enough information
Please help thank You!