Question. Suppose a project contains 3 forms and the first form is
auto created, while the other 2 are created in button click event.
All three forms contain a button. Button1 on form1 creates and then
shows Modally form2.
Form2 contains table1 which is opened during form2's create
procedure. Button2 on form2 creates form3 which is shown Modally.
Form3 contains button3 which simply Shows a field from table 1
(which is on form2)
the code on button 3 looks like this:
procedure TForm3.Button1Click(Sender: TObject);
When button3 is pressed An access violation occurs
Read of address FFFFFFFF
which the table has not been created yet. but was opened in form2
General Info: Form1 Uses form2 . Form2 Uses form3... and so on.
Is It Possible to access Any of the fields of table 1 on form2 ?
I konw I could use a dataModule. But Would Like to know why this
Thanks Paul Sutton