Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Not able to enter into Grid

Status
Not open for further replies.

muraliambt

Programmer
Jan 22, 2002
75
US
I have form with Grid. I have buttons for add, modify, delete. i have
created one cursor called "temp"
in form load event and in the init() event of the gird i assigned the
recordsource to "temp".

when i am in enquiry mode i am able to see the records in gird. when said
append i am not able to enter into grid.

I am also appending blank record to temp when add button is pressed.

Murali.
Programmer
 
Hi
1. Have you set the grids property READONLY = .f.
2. Is the temp file an SQL cursor. SQL cursors are read only.

If you use SELECT * FROM myFile INTO DBF myTemp... this INTO DBF makes it a read write table...
OR
USE myTemp AGAIN IN 0 ALIAS myNewTemp.. and this could become read write..

Hope this helps you :) ramani :-9
(Subramanian.G),FoxAcc, ramani_g@yahoo.com
 
Hi ramani,

The grid is not readonly and i am using the cursor which i created in form Load event.

CREATE CURS TEMP( FIELD1, FIELD2..ETC)

 
What is the code in your ADD button? Did you create this form using a Wizard?

On my form (similar to yours) I intentionally disable the grid when in Edit mode to prevent the user from changing the current record before saving/reverting.

Ian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top