>>>Hi
>>>
>>>I am testing a program and have entered data onto a screen
>>>
>>>The result of entering the data wull be to cause a browse on one of the files - when I end the browse all the data on the screen has gone
>>>
>>>How can I stop this happening
>>
>>Sounds like you've moved the record pointer or closed the table that the form is based on.
>>
>>Tamar
>
>I haven't closed the table
>
>What exactly do you mean by I have moved the record pointer?
If no data is there, it sounds like the record pointer for that table is at end-of-file (EOF()). Lots of commands will do that. Try preserving the record pointer position before you call your browse and restoring it afterward:
Here's a simplified version. You actually need to check that the stored value is something you can GO to.
nRecno = RECNO()
GO m.nRecno
Tamar