Solved

Data Grid - Allow Update

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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 process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

705 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now