Results 1 to 2 of 2

Thread: Intresting DBGrid/Database?SQL ques??? - need urgent help!!!!

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2000
    Posts
    15

    Question

    Hi everybody;
    Another DBgrid grid kinda ques for u all...thanx for ur time guyz!!!so here's is it:
    I have a DBgrid on the form..so what i'm doing is adding records in that DBgrid which is bound to access database...
    Everything's workin fine. The only problem is when i load the form again it shows up all the records that were added last time and before(the one's that are already in the database).
    So what i want is; its should show the DBGrid
    totally blank to add new records without showing the old ones in database.........
    if anyone has any ideas how to do this, please let me know.....
    anyway by making rows invisble, or by sQl.....or any
    other way i can do this
    thanx a lot
    Cheers
    Raj


  2. #2
    Guest
    It's all about how you set up the data source that the grid is bound to. I would probably add a column to the database called "isNew" or something and use it to mark whether the row should be shown. Set the recordSource property of your data control to "SELECT * FROM myTable WHERE isNew = FALSE" and then execute the .refresh method.

    Hope That Helps

    -John

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width