G
Guest
I am making a database about in/out scope server
I have a table which contain all in scope server,
and also a form represent it
then i have another form which allow users to type in their required server
in "required server" field and then i have another field "I/O", which i want
the user click this field, then the field will auto generate "IN" if the
required server is in scope, and generate "OUT" if the required server is out
scope.
Now my code is like this
Private Sub IO_Click()
If Me![Requested Server] = Forms![Detail_of_Server]![Server] Then
Me![IO] = "IN"
Else
Me![IO] = "OUT"
End If
End Sub
however, it only work for first record which store in "Detail of Server"
while other cannot.
I mean i have a list of server in the detail of server,
such as: sh90, rk15, jp45............etc
the above code only can work for sh90, while rk15 and jp45 is not work,
what can i do????????
i have searched the post before,
but i can't find any help~
pls help me~
I have a table which contain all in scope server,
and also a form represent it
then i have another form which allow users to type in their required server
in "required server" field and then i have another field "I/O", which i want
the user click this field, then the field will auto generate "IN" if the
required server is in scope, and generate "OUT" if the required server is out
scope.
Now my code is like this
Private Sub IO_Click()
If Me![Requested Server] = Forms![Detail_of_Server]![Server] Then
Me![IO] = "IN"
Else
Me![IO] = "OUT"
End If
End Sub
however, it only work for first record which store in "Detail of Server"
while other cannot.
I mean i have a list of server in the detail of server,
such as: sh90, rk15, jp45............etc
the above code only can work for sh90, while rk15 and jp45 is not work,
what can i do????????
i have searched the post before,
but i can't find any help~
pls help me~