>
THIS.RECORDSOURCETYPE = 4
> THIS.RECORDSOURCE ="SELECT wonum,t_in,t_out,wc,route,empid,qtybuilt,opcomp, 000 as minutes FROM timeinput ;
> WHERE empid = '94' AND EMPTY(t_out) AND TTOD(t_in)=>DATE()-3 INTO CURSOR ttimeinput READWRITE">
> I am not surprised that the grid is ReadOnly. This has nothing to do with setting BindControls = .T.
>
> It is because a grid with RecordSourceType of 4 is ReadOnly - it does not matter if you direct the query results into a ReadWrite cursor.
>
> What you should do instead in run the querey in the form's init() after you get the parameter(s) that you need and set the grid's recordSouorce to that cursor and leave the grid's RecordSourceType as 1-Alias. Then, after you run the query, set Thisform.BindControls = .T.
>
>
Regards,
> Marcia G. Akins
> Tightline Computers, Inc.Interesting - but when I leave the recordsourcetype as 4 and leave the bindcontrols set to .t. and build the cursor before the form it is not read only.
Dan
"Our gold does not chink and glitter. It gleams in the sun and neighs in the dark." Chief Joseph