Solved

Data Grid - Allow Update

Posted on 2002-03-21
1
176 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

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 trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
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…
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…

752 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