>The alias is being changed to the grid alias as you suspected. How do recommend to fix this?
>
>Jason
Move the focus off of the grid to some other control before attempting to issue the REPORT command.
>
>>Two possible problems:
>>
>>1. If you have a grid on the form that you are running the report from, you can have problems because the grid takes over and changes the alias. Make sure you programmatically take focus off the grid and then run the report.
>>
>>2. The current alias has switched to something else. To test this theory, put a field on your report with an expression of ALIAS(). This way you can see what the current alias is.
>>
>>
>>Cathy
>>
>>
>>>I have a report that uses a buffered view that is empty initially, populated in a process, the report then runs and the view is then reverted.
>>>
>>>When I do a preview it works fine. Recently I added an option to automatically send the report to the printer or do a preview. The preview still works fine, but the sending the report to the printer has caused some grief. For some reason the report is only getting the first record. Does anyone have any ideas on what is going on here. If I do a browse of the view before the send to printer the report works fine.
>>>
>>>Jason