Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
NULL error w/Remote View to Access97 Database
Message
 
To
20/01/2005 15:01:33
General information
Forum:
Visual FoxPro
Category:
Client/server
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows 2000 SP4
Database:
Jet/Access Engine
Miscellaneous
Thread ID:
00979027
Message ID:
00979084
Views:
20
>I have a VFP7 app which attaches to an Access97 database via a remote view. It has worked fine for a long time.
>
>I've just been updating it to use a slightly modified Access97 database, with a few new columns. The RV is defined in code, based on that originally generated by GENDBC. When I now attempt to open the view, I get an error message: "Field TEACHER does not accept null values".
>
>The TEACHER field is not one of the new fields, it's been there all along. Can anyone shed any light on why this is happening, and how to fix it?


Can you post the code for the view? My guess is you probably have an outer join in it somewhere, and you're just now finding a situation where there's no matching record in the related table. If you don't want nulls in your view, make sure you use a NVL() function around any fields that come from a table related by an outer join.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform