M
Marcelino via AccessMonster.com
Hey good morning guys from Iraq. I doing a database for my soldiers and I
have a problem so far. I'm try to do a desicion. I want to check the rank
after select the soldier. to give me access to differents command buttons.
Like if the soldier is E-4 and below I don't need access to E-5 command
button. The code that I have is this one and when I executed unable access
to all the command group no matter therir rank.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[SS] = '" & Me![Combo1] & "'"
SMName.Visible = True
if (rank="e1") or (rank="e2") or (rank="e3") or (rank="e4") then
NCOER.Enabled = false
Weapons.Enabled = True
OpenSchForm.Enabled = True
PromoForm.Enabled = false
VehForm.Enabled = True
end if
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
If somebody can help I'll be appreciate.
have a problem so far. I'm try to do a desicion. I want to check the rank
after select the soldier. to give me access to differents command buttons.
Like if the soldier is E-4 and below I don't need access to E-5 command
button. The code that I have is this one and when I executed unable access
to all the command group no matter therir rank.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[SS] = '" & Me![Combo1] & "'"
SMName.Visible = True
if (rank="e1") or (rank="e2") or (rank="e3") or (rank="e4") then
NCOER.Enabled = false
Weapons.Enabled = True
OpenSchForm.Enabled = True
PromoForm.Enabled = false
VehForm.Enabled = True
end if
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
If somebody can help I'll be appreciate.