473,320 Members | 1,691 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

problem when adding data, i can't view the newly added correctly

55
when i add data it doesn't seem to go into the recordset immediately i have to close the program and reopen before i can see the newly added data. i tried refresh and requery but it doesn't seem to work
Nov 14 '07 #1
6 1057
Killer42
8,435 Expert 8TB
when i add data it doesn't seem to go into the recordset immediately i have to close the program and reopen before i can see the newly added data. i tried refresh and requery but it doesn't seem to work
Could you give us some details about the version of VB, what sort of database, how you're accessing it, and so on?
Nov 14 '07 #2
jaz215
55
Could you give us some details about the version of VB, what sort of database, how you're accessing it, and so on?
I'm using VB6. I access data through the adodc connecting to MS Access. I just set the properties of the adodc to connect.

The way I add is:
Expand|Select|Wrap|Line Numbers
  1. adodc.recordset.addnew
  2.  <asigning values to textboxes conected to the adodc>
  3. adodc.recordset.update
  4. adodc.recordset.refresh
It's just a basic code and it worked fine when I started but now it seems that something has gone wrong and I cannot view the added data immediately.

Thanks.
Nov 14 '07 #3
jaz215
55
got the answer in another thread sorry for this. anyway to fix the problem i just have to refresh twice dont know why this is. thanks
Nov 14 '07 #4
Killer42
8,435 Expert 8TB
got the answer in another thread sorry for this. anyway to fix the problem i just have to refresh twice dont know why this is. thanks
Hm. Sounds like more of a workaround than a solution. But I guess if it works, that's what really matters.
Nov 14 '07 #5
Killer42
8,435 Expert 8TB
Sorry people, TSDN is English-only. I've deleted your posts.
Nov 15 '07 #6
jaz215
55
Sorry people, TSDN is English-only. I've deleted your posts.
Sorry about that Killer.. will use english from now on :P
Nov 15 '07 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

8
by: Ashish Shridharan | last post by:
Hi All I have been trying to add a control to the header cell of a datagrid on my ASP.NET page. These controls are defined in the HTML as ASP.NET web controls. They are being added into the...
3
by: daveland | last post by:
I am working on some JavaScript that dynamically adds rows to a table in response to a button click. A new row does appear on the screen when the button is clicked. However, that table to which a...
1
by: Terry | last post by:
Hello, Has anyone experienced the following problem following an Upsize from Access 97 to SQL 2000 using the MS Upsize Wizard? Or can anyone see what the problem might be. Before Upsize...
6
by: Robin Bonin | last post by:
In my user contol I am creating a set of dropdownlists. Each list is created based on input from the other lists. The problem I am having is setting the selected index on the lists. If someone...
8
by: Dominique | last post by:
In order to become more familiar with the Model-View-Controller pattern, I have written a demo where each View is a plugin and the plugins are loaded at startup from the plugins directory. When the...
17
by: radio1 | last post by:
Configuration: Access 2002 and SQL Server 2000 using a .ADP Project. I would VERY MUCH appreciate anyone's input into this problem I'm having. I have a form in Access that does not permit...
10
by: MLH | last post by:
Suppose, in a multi-user environment, you have append query SQL in a VBA procedure that looks like INSERT INTO MyTable... and the next line reads MyVar=DMax("","MyTable... You can never be...
2
by: DavidPr | last post by:
I'm creating (trying to create) a picture gallery for my website. The script is not working. I've been working on it now for about 80 hours with no success. My php skills aren't very good. This...
1
damonreid
by: damonreid | last post by:
Access 2003 Microsoft Windows XP Pro Hey, I am currently pulling my hair out here. I have a Form for adding new projects to a database, the only problem is that when I close the form it doesn't...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.