Solved

FlexGrid doesnt save data

Posted on 2002-05-12
8
202 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
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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.

 

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
 
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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

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

Suggested Solutions

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…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
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…

828 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