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

Access data retrieval from a table to a form

Hi All,
I want to create a table that has a list of Head Teachers (HeadTeacher,)a list of schools (SchoolName)and then the address of the school (SchoolAddress).
Then I want to have a dropdown box or a combo box to select the schoolname and have it insert the associated address into a text box or the combo box if it will fit, and the head teacher into another text box.

The only problem is that I have to have the address as a memo because the 55 characters in the text field is not enough.
Is this possible to do?
Feb 27 '12 #1
2 1523
NeoPa
32,556 Expert Mod 16PB
The first point to consider is that TextBox controls and, particularly, Text fields, can handle more than 55 characters. It's an unusual address indeed that cannot fit within both. That said, addresses are rarely stored in a single field anyway, nor should they be in most cases.

As for ComboBox controls, they can have multiple columns, although only one value. It's perfectly possible to populate other controls with the values of the other columns from the ComboBox, but I suspect what you really want is a properly designed form bound to your table which has controls for each of the fields and a separate (unbound) ComboBox control which is used to set a filter to enable selection of the relevant record on your form.

Instructions and an example of how to do this can be found at Example Filtering on a Form.
Feb 27 '12 #2
Mihail
759 512MB
About 55 characters I wish to add that is a default setting and can be changed (as default) from Options.
On the other hand you can set the number of characters in the field properties. As far as I know it accept up to 255 characters. But you can input an increased number (say 1 million) and Access will pop up a message with the maxim number of characters allowed (I hope).
Feb 28 '12 #3

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

Similar topics

9
by: cooldv | last post by:
i know how to replace the sign " when SUBMITTING a form in asp by this code: message = Replace(usermessage, "'", "''"). My problem is DISPLAYING data in an asp FORM, from an an access database,...
1
by: Andrew Arace | last post by:
I scoured the groups for some hands on code to perform the menial task of exporting table data from an Access 2000 database to Oracle database (in this case, it was oracle 8i but i'm assuming this...
3
by: GP | last post by:
We are connecting to sql server database in the webservices & retrieve the data as dataset from the webservices and load it to the aspx pages ,But we find loading of the aspx pages takes longer...
1
by: Debi | last post by:
Hi, I've created a console application which is scheduled to run every morning to pull out some reports. The data retrieval is through stored procedures which takes a max of 2-3 mins to run. But...
1
by: abc my vclass | last post by:
Is VS2005 debugger let me to see dataset, datatable data as table form? I found if I watch some table or dataset variable is very very hard to see. Is there any good tools or add-ins for debugger...
5
by: Boki | last post by:
Hi All, There are two forms, when some click happen, it fires to set form2's viable as enable. The form2 is for user to input some text and then the data need to be collected into form1's...
1
by: ilenx | last post by:
i wouldn't consider myself a php newbie, but i'm admittedly a novice. i'm posting secure form data to http://gateway.securenet.com/payment.scrnt, to process a credit card transaction; when i post...
2
by: smugcool | last post by:
hi, I am very much unaware of working in vb. I have an access database, along with various queries. I wanted to build a form where i can display data of tables,queries in the form. I dont know how...
1
by: tbeer | last post by:
Hello. I have created a 2007 database to help organize a golf outing event which requires the collection and tracking of a lot of linked data. Everything in my dbase is linked to my Main Business...
0
by: rahul more | last post by:
My aim is - Access data from table and show it into a form's textboxes , comboxes for edition of data. I am using listview. I am selecting particular row of listview by clicking on that row and...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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.