Adam
>>In the load method of a form I call a stored procedure
in a database that is part of the form's data environment.<<
You need to find a list of the firing order of events in
VFP. I the Mastering VFP CD there is such a list in the
'Chapt 7: The Object Model PEMs'
You should see that the Form Load event happens before
the DataEnvironment event. So that is why the error.
Try moving your code to the INIT event.
Tom