Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Data Grid - Allow Update

Posted on 2002-03-21
1
Medium Priority
?
185 Views
Last Modified: 2006-11-17
Private Sub lstClients_Click()
   Dim strQuery As String
         
   strQuery = "SELECT * FROM Appointments INNER JOIN AppStatus ON Appointments.StatusID = AppStatus.StatusID
WHERE Appointments.CompID = " & strCompID & "ORDER BY DateTime DESC"
   adoAppointments.RecordSource = strQuery
   adoAppointments.Refresh
End Sub

i had using the adodc and data grid to list out different appointments info for the different sales person. i face the problem when i try to update the information (AllowUpdate = True).

the data can be updated successfully if after i update that cells (eg row = 2) and i click the other row (except row = 2)
 
if i LostFocus from the data grid table (without click the other row) then the value i try to change will set back to the old value. (failed to update)

this situation also make me impossible to update the data if there got jus one row

any solutions

thanks a lot
0
Comment
Question by:jiann13
1 Comment
 
LVL 14

Accepted Solution

by:
puranik_p earned 150 total points
ID: 6888294
make sure you haven't changed any default properties for the ADODC.
Try setting recordsource at design time, rather than at run time, if possible.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
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…

782 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