There are two forms. One of them displays data from the table (full name, login, login date, etc.), all fields are locked for editing. With a double click, another form should open in which the fields on which there was a double click are open for editing. I in one form tried to hang up the following code. For example, the field "name" contains the following code:
Private Sub ФИО_DblClick(Cancel As Integer) Dim stDocName As String Dim stLinkCriteria As String stDocName = "Main2" stLinkCriteria = "[ФИО=]" & "'" & Me![ФИО] & "'" DoCmd.OpenForm stDocName, , , stLinkCriteria DoCmd.Close acForm, "Main" End Sub but it does not work, it produces a syntax error, the statement in the query expression is '[Full name =]' LoremIpsum ". When corrected as follows:
stLinkCriteria = "[ФИО]=" & "'" & Me![ФИО] & "'" - открывается просто пустая форма. How to implement data transfer, at least in which direction to dig?
stLinkCriteriawhat is this parameter? OpenArgs? - Anatol