473,387 Members | 1,561 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,387 software developers and data experts.

clearing unbound controls clears them on previous entries as well

I have a form that has some unbound controls. I have created a button that will clear them when clicked (otherwise, these controls are not cleared when creating a new entry). Thing is, this button also clears the controls on previous entries. Is there a way to clear these unbound controls only for the current entry (or lock the info of previous entries so that changing them will be impossible)?
Jan 24 '15 #1
7 1051
Seth Schrock
2,965 Expert 2GB
Because the controls are unbound, there is no connection to the records and thus Access can't allow different values in the same control. The only solution is to bind the controls to a field in a table or query.
Jan 24 '15 #2
Hey Seth thanks a lot for your reply. I'm not sure exactly how to go about what I need to do. I have a form which is a questionnaire, and there is some information that I want to keep on the form but not on the table. The problem is that this information comes from people filling the questionnaire (meaning that it should change with each entry) do you know how I can go about it? If there's no way to do that, do you know where i can find out binding controls using queries?
Jan 24 '15 #3
Rabbit
12,516 Expert Mod 8TB
You want to keep data, but you don't want to keep data. That doesn't make any sense. What is this data and why is it special?
Jan 24 '15 #4
Seth Schrock
2,965 Expert 2GB
I think that you are going to have to store the data at least temporarily in a table. You can always delete the contents of the table later. So you would just need to create a table with the same fields as are on your form and then set the form's Record Source property to the name of your table and then change each textbox's Control Source property to the appropriate field.
Jan 24 '15 #5
Rabbit, thanks to you I realize now that the description I have written wasn't clear. For some reason the client wants some information to be stored only on the form entries and not in the table. In other cases I used some workarounds which meant doing things in a more messy way and using some unbound controls (for instance, rather than using a combobox to allow multiple choice, which the client said was inconvenient, I used unbound checkboxes). Anyway, for different reasons, there's some data coming from people who are filling the questionnaire, which should be saved only on their form entry and not in the database table. The problem is apparently, as Seth pointed out, that controls should be bound to allow different input for different entries.
Seth thanks again. I thought it might come to this, but that means I have built the whole thing wrong and should start over, this time splitting the form and table to make it easier to manage (as I have over 100 unbound controls). Still hope to come up wth something better, or have the client change his mind :)
Jan 24 '15 #6
Rabbit
12,516 Expert Mod 8TB
I still don't understand what about this other type of data makes it so you don't want to store it in a table. You seem to be under the impression that forms can store data. Forms can not store data, they only display data that is already stored in a table. If you have two types of data, and don't want to store them in the same table, that's fine, create two tables. You can just link them to display both types of information in one form, be it with a query or with subforms.
Jan 24 '15 #7
the two tables idea sounds good. how would i go about linking them with query?
Jan 25 '15 #8

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

Similar topics

3
by: MLH | last post by:
I have a form, bound to a query. Its RecordSource property is a query named frmEnterLienAmounts. The form has a few bound controls and some unbound controls. The unbound controls are calculated...
1
by: Tomas R | last post by:
I have a datagrid with a dataview(created from a DataTable) bind to it. It displayes coordinates and I have a toolbarbutton that will create a set of new coordinates just like the existing ones,...
3
by: google | last post by:
I'm developing an application for use within my company in Access 2003. I'm new to '03, the application I did for my former employer was in '97. The two applications have similar functionality...
1
by: planetthoughtful | last post by:
Hi All, I have a mainform with a subform in which I show some task summary data. On the mainform I have a number of unbound controls that reflect values relevant to each task in the subform....
5
by: SBC News Groups | last post by:
Using VBA how do I assign columns from a table to controls on an unbound form? Mike
2
by: ccsnavy | last post by:
For some reason referencing an unbound control on an active form from a query has ceased to work correctly. While other previously existing references to unbound controls in the same form seem to...
7
by: ARC | last post by:
I've noticed that if you use code for the before update command for unbound controls, it doesn't really work. I tried the following: Me!ExportedYN.undo Cancel = True DoCmd.CancelEvent Exit...
24
by: NaftoliGug | last post by:
Is there a way to have unbound, uncalculated controls (or a calculated control that is based on a function) that retains a different value for each record?
7
by: clloyd | last post by:
I have a form that opens with an embedded subform visible for data entry of new data only. The form is based of a select query so I can show data from multiple tables for verification but the sub...
4
by: Mike Hall | last post by:
MS Access 2007. When doing a simple record select and copy on a continous form, all the unbound controls in the form header get copied as well. Evidence of this is seen if you paste into Excel. ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...

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.