Solved

How to clear fields in Data Grid...

Posted on 2002-07-30
3
173 Views
Last Modified: 2010-04-24
i have try datagrid.clearfields to clear up the fields before insert new data but can't work.

can i know the code for it.
0
Comment
Question by:cyseng10
3 Comments
 
LVL 17

Accepted Solution

by:
Barry Cunney earned 20 total points
ID: 7188434
If your datagrid is bound to ADO  data control you can set reset recordsource to sql that you know will not return any records

Adodc1.RecordSource = "Select * from Personnel where PersonnelID = '2222'"
Adodc1.Refresh

I know there is no PersonnelID 2222
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 8049131
Hi cyseng10,
It appears that you have forgotten this question. I will ask Community Support to close it unless you finalize it within 7 days. I will ask a Community Support Moderator to:

    Accept BCUNNEY's comment(s) as an answer.

cyseng10, if you think your question was not answered at all or if you need help, just post a new comment here; Community Support will help you.  DO NOT accept this comment as an answer.
==========
DanRollins -- EE database cleanup volunteer
0
 

Expert Comment

by:SpideyMod
ID: 8095944
per recommendation

SpideyMod
Community Support Moderator @Experts Exchange
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

785 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question