Solved

How to clear fields in Data Grid...

Posted on 2002-07-30
3
181 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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Copy a row 12 70
How to Add / Edit Windows Menu 4 74
Remove Exif Orientation before adding image to db 9 45
VBA: copy range dynamically based on config sheet v3 6 33
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

730 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