Yes.
Since your question is rather vague with a specific, I'll supply my own example. Let's say you have a textbox for the user to type in an Id or password. In design view, you would right click the textbox, select Microsoft Script Editor. On the left of the screen, under Script Outline, you'd scroll down to the textbox name and double click on it. You'll see some events. You would then double click on "onchange" and type in some code such as:
Set rs = CreateObject("ADODB.Recordset")
sqlSelect = _
"SELECT * FROM LogonInfo WHERE EmployID = '" & EmployeeID.value & "'"
rs.Open sqlSelect, MSODSC.Connection
If rs.EOF Then
EmployeeID.value = "(Access Denied)"
Else
holdID = document.all.item("EmployeeID").value
EmployeeID.value = "(You May Edit)"
Hyperlink0.style.visibility = "visible"
If holdID = "Whatever" then
Hyperlink1.style.visibility = "visible"
Hyperlink2.style.visibility = "visible"
txtStart.style.visibility = "visible"
txtEnd.style.visibility = "visible"
Text0_Label.style.visibility = "visible"
Text1_Label.style.visibility = "visible"
End if
End If
rs.Close
Set rs = Nothing
You code DAP's using VBScript, not what you use for forms. Remember, you are not in Access, you are in Internet Explorer.