R
Ralph Taylor
Anyone have any advice regarding the following?
I created a little MDB file with the following 3 tables and records
(using Access 2003 BTW):
tblProject
fldProjectID
tblStand
fldStandNo
fldProjectID
tblOrderStandProject
fldOrderNo
fldProjectID
fldStandNo
All of the above records are text and primary keys, the relationship
is:
tblproject(1) to tblstand(Many)
tblStand(1) to tblOrderStandProject(Many) (using both keys)
Then I use Access's form wizard to create a form using all the above
tables, with tblProject as the master, and the other two as subforms.
Open the tblProject form (there are currently no records, this makes
no difference), click "Records/Refresh" from the top menu in Access.
That error "method 'Requery' of object '_SubForm' failed" appears
(feel a surge of joy), I click the [OK] button
/Microsoft Shared/DW20.EXE has a quick unauthorised chat with
131.107.103.243, THEN the typical ERROR REPORT (Illegal Operation)
screen appears, and Access falls on its butt (lame).
And thats about that.
The only code that appears to be generated by the wizard is:
============Form_tblStand Subform============
Sub Form_Current()
Dim ParentDocName As String
On Error Resume Next
ParentDocName = Me.Parent.Name
If Err <> 0 Then
GoTo Form_Current_Exit
Else
On Error GoTo Form_Current_Err
Me.Parent![tblOrderStandProject Subform].Requery
End If
Form_Current_Exit:
Exit Sub
Form_Current_Err:
MsgBox Error$
Resume Form_Current_Exit
End Sub
============End============
The above 'requery' is where it crashes Access.
I've tried changing various things, like the way access references the
Subform object to perform the requery, without success. Sometimes the
error goes away for a while, leading one to think its been solved,
then pops back. Not very consistant.
Any help would be great.
I created a little MDB file with the following 3 tables and records
(using Access 2003 BTW):
tblProject
fldProjectID
tblStand
fldStandNo
fldProjectID
tblOrderStandProject
fldOrderNo
fldProjectID
fldStandNo
All of the above records are text and primary keys, the relationship
is:
tblproject(1) to tblstand(Many)
tblStand(1) to tblOrderStandProject(Many) (using both keys)
Then I use Access's form wizard to create a form using all the above
tables, with tblProject as the master, and the other two as subforms.
Open the tblProject form (there are currently no records, this makes
no difference), click "Records/Refresh" from the top menu in Access.
That error "method 'Requery' of object '_SubForm' failed" appears
(feel a surge of joy), I click the [OK] button
/Microsoft Shared/DW20.EXE has a quick unauthorised chat with
131.107.103.243, THEN the typical ERROR REPORT (Illegal Operation)
screen appears, and Access falls on its butt (lame).
And thats about that.
The only code that appears to be generated by the wizard is:
============Form_tblStand Subform============
Sub Form_Current()
Dim ParentDocName As String
On Error Resume Next
ParentDocName = Me.Parent.Name
If Err <> 0 Then
GoTo Form_Current_Exit
Else
On Error GoTo Form_Current_Err
Me.Parent![tblOrderStandProject Subform].Requery
End If
Form_Current_Exit:
Exit Sub
Form_Current_Err:
MsgBox Error$
Resume Form_Current_Exit
End Sub
============End============
The above 'requery' is where it crashes Access.
I've tried changing various things, like the way access references the
Subform object to perform the requery, without success. Sometimes the
error goes away for a while, leading one to think its been solved,
then pops back. Not very consistant.
Any help would be great.