Cancelled Previous....

jamesWP

Registered User.
Local time
Today, 00:23
Joined
Aug 8, 2005
Messages
68
Hi there, I quickly made a database, and for some reason, can't get past this 'cancelled' error, to get it to occur, open the Companies form, click orders and then it pops up.

By deleting all of the data in my tables, I can get to a state where I can once again enter data, but after closing the orders subform and opening it again, once again I have the dreaded error.

If anyone has any ideas of why this may be happening, feel free to share them :P

Thanks alot,
James Prince

Edit,

Here's my table structure:

CompanyID PK Autonumber - Relationship
Name
Address1
Address2
Town
PostalalCode
TelephoneNumber
FaxNumber

OrderID PK Autonumber - Relationship
CompanyID - Relationship
WeekNumber
Price
PriceWithVAT

MPL Autonumber
OrderID - Relationship
PartNumber
Size
PriceEach
PricePer100
Quantity

Basically I used the forms wizard to create a linked sub form, and when moving to a new order thats when it errors I think.
 

Attachments

Last edited:
Your filter has the wrong syntax in Private Sub FilterChildForm(). Change it to:
Code:
Forms![Orders].Filter = "[CompanyID] = '" & Me![CompanyID] & "'"
and your error will disappear.
 

Users who are viewing this thread

Back
Top Bottom