Solved

Data Grid - Allow Update

Posted on 2002-03-21
1
171 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 50 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

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

Suggested Solutions

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
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 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…
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…

776 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