Solved

FlexGrid doesnt save data

Posted on 2002-05-12
8
199 Views
Last Modified: 2008-03-17
greetings ,
i use ADODC1 connected to a table and use Datagrid1 connected to ADODC1,, data entry on datagrid1 doesn't save the last record only, it save all record but the last one ???
0
Comment
Question by:raed
  • 4
  • 2
  • 2
8 Comments
 

Expert Comment

by:lbanhoe
ID: 7004526
Can i know what is ur problem for more specific because after i try it out ... it seems like to be o.k. for me ....
what is ur mean for save the last record only, or save all record but the last one ...??????
there is two condition that i understand from ur question is that
1) it only saved the last record in the datagrid1 and not the other (eg: 123 data, it only saved the data at 123 but not before that)

2) it saved all the 122 data but not the last one(eg: data at 123)
0
 

Author Comment

by:raed
ID: 7005653
i mean thae last row on the grid is not reflicted at the table.
after i enter data on the grid i got to the access table (ALt+Tab) look at the table all record are there bu the last one is still blank alt+tab again i can see it on the grid


on the grid there is values for the last row but on the table the last row is blank.

something happend :::: if i click on another control on the form then return to the grid it refelct the changes ???
is that strange or what is going on ?????


0
 

Author Comment

by:raed
ID: 7005656
another thing ,,,,, on the same table

this doesnt work

Dim db As Database
strDataPathWrkLoad = "C:\My Documents\db2.mdb"
Set db = OpenDatabase(strDataPathWrkLoad)
strSQL = "UPDATE MCHTemp1 SET MCHTemp1.PlaceId = '" & vPlaceID & "', MCHTemp1.[Year] = '" & vYEar & "', MCHTemp1.[Month] = '" & vMonth & "', MCHTemp1.tmpCount = 0;"
db.Execute strSQL
set db= nothing

after executing the code the temp table still has values ?
0
 

Author Comment

by:raed
ID: 7005733
another thing ,,,,, on the same table

this doesnt work

Dim db As Database
strDataPathWrkLoad = "C:\My Documents\db2.mdb"
Set db = OpenDatabase(strDataPathWrkLoad)
strSQL = "UPDATE MCHTemp1 SET MCHTemp1.PlaceId = '" & vPlaceID & "', MCHTemp1.[Year] = '" & vYEar & "', MCHTemp1.[Month] = '" & vMonth & "', MCHTemp1.tmpCount = 0;"
db.Execute strSQL
set db= nothing

after executing the code the temp table still has values ?
0
Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

 
LVL 1

Expert Comment

by:Moondancer
ID: 7017671
This question is current, not all below are and need your attention please.  ADMINISTRATION WILL BE CONTACTING YOU SHORTLY.  Moderators Computer101, Netminder or Mindphaser will return to finalize these if they are still open in 7 days.  Experts, please post closing recommendations before that time.

Below are your open questions as of today.  Questions which have been inactive for 21 days or longer are considered to be abandoned and for those, your options are:
1. Accept a Comment As Answer (use the button next to the Expert's name).
2. Close the question if the information was not useful to you, but may help others. You must tell the participants why you wish to do this, and allow for Expert response.  This choice will include a refund to you, and will move this question to our PAQ (Previously Asked Question) database.  If you found information outside this question thread, please add it.
3. Ask Community Support to help split points between participating experts, or just comment here with details and we'll respond with the process.
4. Delete the question (if it has no potential value for others).
   --> Post comments for expert of your intention to delete and why
   --> YOU CANNOT DELETE A QUESTION with comments; special handling by a Moderator is required.

For special handling needs, please post a zero point question in the link below and include the URL (question QID/link) that it regards with details.
http://www.experts-exchange.com/jsp/qList.jsp?ta=commspt
 
Please click this link for Help Desk, Guidelines/Member Agreement and the Question/Answer process.  http://www.experts-exchange.com/jsp/cmtyHelpDesk.jsp

Click you Member Profile to view your question history and please keep them updated. If you are a KnowledgePro user, use the Power Search option to find them.  

Questions which are LOCKED with a Proposed Answer but do not help you, should be rejected with comments added.  When you grade the question less than an A, please comment as to why.  This helps all involved, as well as others who may access this item in the future.  PLEASE DO NOT AWARD POINTS TO ME.

To view your open questions, please click the following link(s) and keep them all current with updates.
http://www.experts-exchange.com/questions/Q.20253068.html
http://www.experts-exchange.com/questions/Q.20299675.html
http://www.experts-exchange.com/questions/Q.20274828.html
http://www.experts-exchange.com/questions/Q.20285531.html
http://www.experts-exchange.com/questions/Q.20285532.html
http://www.experts-exchange.com/questions/Q.20285816.html
http://www.experts-exchange.com/questions/Q.20301612.html



*****  E X P E R T S    P L E A S E  ******  Leave your closing recommendations.
If you are interested in the cleanup effort, please click this link
http://www.experts-exchange.com/jsp/qManageQuestion.jsp?ta=commspt&qid=20274643
POINTS FOR EXPERTS awaiting comments are listed in the link below
http://www.experts-exchange.com/commspt/Q.20277028.html
 
Moderators will finalize this question if in @7 days Asker has not responded.  This will be moved to the PAQ (Previously Asked Questions) at zero points, deleted or awarded.
 
Thanks everyone.
Moondancer
Moderator @ Experts Exchange
0
 

Accepted Solution

by:
lbanhoe earned 100 total points
ID: 7017870
Raed,
   from what i tested out, the control will only alter the data in the table after you set the focus of the record you are changing to other record.
   For eg: if you want to change the record 4 then after do the changes, you need to go to other record other than record 4 then the changes will be displayed out.
  for your reference, you can use the key_press option and check for enter key(ascii = 13) and tab key(ascii = 9. if one of this key is keyed in then you can toggle the control to other cell or other control and set it back to the original place then the data will be updated in the database.
   and for the connection part i suggest you to use the  and adodc to get the connection.
0
 

Author Comment

by:raed
ID: 7021005
thanx for your help,
is there a place on the web that contain more details on flixgrids ????



thanx
0
 
LVL 1

Expert Comment

by:Moondancer
ID: 7074082
Thanks for returning and finalizing this.  You've asked a new question here, please post it as a separate question.

Moondancer - EE Moderator
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

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…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

759 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

19 Experts available now in Live!

Get 1:1 Help Now