G
George Papadopoulos
Hello everybody
I have two built two forms with the controls on each form bounded to two
different tables. There exists a button on the first form which when pressed
pop-ups the second. By using an event handler for the on-click event I want
to assign a text box value on the second form by making equal to the another
text box value on the first form. The code, I am using now is :
Private Sub Add_spare_Click()
On Error GoTo Err_cmdGoHere_Click
Dim stDocName As String
Me.[Kwdikos episkeyhs].SetFocus
varvc = Me.[Kwdikos episkeyhs].Text
stDocName = "STOIXEIA_ANTALLAKTIKWN"
DoCmd.OpenForm stDocName
Me.[Kwdikos episkeyhs].SetFocus
Me.[Kwdikos episkeyhs].Text = varvc
Exit_cmdGoHere_Click:
Exit Sub
Err_cmdGoHere_Click:
MsgBox Err.Description
Resume Exit_cmdGoHere_Click
End Sub
When I press the button I get the error : 'The property is read-only and
can`t be set'.
Is there any way I can change the read-only property? I have not told
Access that the text box should be read-only. Could this problem stem from
the fact that the text-box is bounded to a table? How can I go about this?
Any help would be appreciated
George Papadopoulos
I have two built two forms with the controls on each form bounded to two
different tables. There exists a button on the first form which when pressed
pop-ups the second. By using an event handler for the on-click event I want
to assign a text box value on the second form by making equal to the another
text box value on the first form. The code, I am using now is :
Private Sub Add_spare_Click()
On Error GoTo Err_cmdGoHere_Click
Dim stDocName As String
Me.[Kwdikos episkeyhs].SetFocus
varvc = Me.[Kwdikos episkeyhs].Text
stDocName = "STOIXEIA_ANTALLAKTIKWN"
DoCmd.OpenForm stDocName
Me.[Kwdikos episkeyhs].SetFocus
Me.[Kwdikos episkeyhs].Text = varvc
Exit_cmdGoHere_Click:
Exit Sub
Err_cmdGoHere_Click:
MsgBox Err.Description
Resume Exit_cmdGoHere_Click
End Sub
When I press the button I get the error : 'The property is read-only and
can`t be set'.
Is there any way I can change the read-only property? I have not told
Access that the text box should be read-only. Could this problem stem from
the fact that the text-box is bounded to a table? How can I go about this?
Any help would be appreciated
George Papadopoulos