What happens during testing if you rename your development data folder to something else [e.g., change it from TestData to _TestData]? Are you putting SET DATABASE TO DATABASE_NAME in the BeforeOpenTables? This should not be that much of a problem unless there is another problem lurking in the form or the view.
Mark McCasland
Midlothian, TX USA