Thanks Rick - I'm using serialnumber from the UT. I did not realize until I re-read What's new in VFP 7 that the ole db driver supported calling VFP functions. I have tested and it works but now I have to figure out how to use the function from within C # ADO.net John