473,796 Members | 2,512 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How can I reflect changes to table

9 New Member
I have an unbound form, whose combobox and textboxes are also unbound.

The form's record source is a query (getdata) .
It has combo box whose rowsource is the same query. The afterupdate event for the combobox assigns a column from the query, (Document_Contr ol_Number), + 1, to a textbox in the form.

When the form is submitted, the values are added into the table, but when I make a selection in the combobox, it does not use the updated Document_Contro l_Number to assign a value to the textbox

I want the form to reflect the changes in the table.

I tried Form.requery, but this didn't seem to work.
Does anybody have a suggestion?
Oct 16 '08 #1
2 2457
missinglinq
3,532 Recognized Expert Specialist
I have an unbound form, whose combobox and textboxes are also unbound...

The form's record source is a query (getdata) .
I think we'd all be interested to know how you did this! If the form has a record source, by definition, the form is bound, not unbound! Which begs the question of why have a bound form with unbound textboxes?

We need to know whether your form is bound or not and whether your textboxes are bound or not. Also how are you "submitting the form?"


Linq ;0)>
Oct 16 '08 #2
ejamnadas
9 New Member
I think we'd all be interested to know how you did this! If the form has a record source, by definition, the form is bound, not unbound! Which begs the question of why have a bound form with unbound textboxes?

We need to know whether your form is bound or not and whether your textboxes are bound or not. Also how are you "submitting the form?"


Linq ;0)>
Thank you for the reply Linq. I used a solution that is working: Upon submitting the form, I run a macro to close and open the form, and the updated value in the table is reflected. I dont know if this is the best solution.

I actually was using a record source for the form but it turned out the form works the same without that record source. The form is unbound, and the textboxes and comboboxes are all unbound.

To submit the form, it connected to the database and opens the table, then adds each of the object values to the table fields. Here is some code:

Set cnn1 = New ADODB.Connectio n
mydb = "H:\DataManagem ent.mdb"
strCnn = "Provider=Micro soft.Jet.OLEDB. 4.0;Data Source=" & mydb
cnn1.Open strCnn

' Open Document Control Table table.
Set rstdatamanageme nt = New ADODB.Recordset
rstdatamanageme nt.CursorType = adOpenKeyset
rstdatamanageme nt.LockType = adLockOptimisti c
rstdatamanageme nt.Open "tblDocumentCon trol", cnn1, , , adCmdTable


'get the new record data
rstdatamanageme nt.AddNew
rstdatamanageme nt!Document_Con trol_Number = Document_Contro l_Number
rstdatamanageme nt!Doc_Type_Num = Doc_Type_Num.Co lumn(0)
rstdatamanageme nt!Document_Nam e = Document_Name
.
.
rstdatamanageme nt.Update
Oct 21 '08 #3

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

Similar topics

0
1560
by: Gill Bates | last post by:
so DOM calls should be calculated from Diff. Possible? How? (some URLs please) I guess this is in most cases not very efficient, but here's why: I have a data Document at the server. From this document, views (HTML, SVG, GIF, etc) can be generated and sent to the client.
0
1314
by: Eric Sykes | last post by:
After installing VSNet for several reasons I had to restore the system to before the VSNet installation. I reinstalled VSNet no problem but now when I open up VSNet a message pops up saying "Help is updating to reflect your recent changes". Then a send dont send debug dialog appears and whatever option I choose VSNet shuts down. This is an endless cycle and I cant run any applications within the environment. The error details read: An...
8
8442
by: McKirahan | last post by:
Firefox does not reflect selected option via innerHTML How do I get Firefox to reflect selected option values? <html> <head> <title>FFinner.htm</title> <script type="text/javascript"> function clicks() { document.getElementById("t1").value =
2
4926
by: Mike | last post by:
Hi, I am strugling with a simple problem which I can't seem to resolve. I have an asp.net page which contains a server-control (flytreeview, which is a kind of a tree to be exact). The tree is being updated by some other process through remoting. When the page loads, I init the tree, and in my browser I can see the initialized tree. The problem is that every time that I receive update to tree from the remote process,
1
2668
by: vios | last post by:
Hi, I have created a trigger as below to update a table called vnd_trail to show what sort of operation(update/delete) happened to the name column. My problem is, I want to have another column to show the changes that took place. For example name field: maxim systems has been changed to maximus system. How can I do that in my trigger below? CREATE TRIGGER vnd_chk AFTER UPDATE OR DELETE ON vnd FOR EACH ROW DECLARE ...
1
2388
by: =?Utf-8?B?QnJhbmRvbg==?= | last post by:
Hi, I have an aspx page that contains an include section which calls an html page for text to be displayed on the aspx page. I also have an upload page that allows users to upload a simple html page with the same name everytime and places it on the server. My problem is that the aspx page does not update to reflect the changes made to the uploaded html page. However, if I log into the server and open the aspx page that contains the code...
0
1105
by: AliRezaGoogle | last post by:
Dear members, I have a datagrid and a textbox on my form. I bound both of them to a common datasource( an arbitrary datatable). When I change a text inside textbox I expect that value of same column in datagride also change and be equal to new value entered inside textbox. But this change reflects to datagrid just when I change selected row in the datagrid.
1
1574
by: AliRezaGoogle | last post by:
Dear Group, I have a SQL Server 2000 databse with some tables. The tables contents are modified by many users at the same time. When I fetch some rows from a table via dataset into my application , I just have a static version of rows. When other users modify the rows I do not have new changes on them. In other words I want to have most up-to-date version of rows every time. One way is to refresh dataset ( re-fetch) in short periods of...
0
1959
by: \Ji Zhou [MSFT]\ | last post by:
Hello Ashutosh, I see your points. As to your two new concerns, I am give the detailed comments in the following. 1. Is it possible to achieve this result without calling Update on the route table? I want to give the user an option to save/reject the changes. Yes, we can achieve the objective without calling the Update function on the route table. The necessary thing we need to do is updating the
0
9673
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10452
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10221
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10003
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9050
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7546
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5569
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4115
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2924
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.