473,473 Members | 1,583 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

editing entries in a table using textboxes and a listbox

I need to make a form through which I can edit the information for
companies. I used a form in which the textboxes read from different
columns from a listbox to display the information for a company, but
it tells me the form is read-only, even when i set the "locked"
property for all of my textboxes to "no". What do I do? Is it
because the textboxes are reading from the listbox rather than the
table? If so, what code do I use to make the textboxes from the table
where the ID equals that of the company selected in the listbox?

TIA,
Andy
Nov 13 '05 #1
4 2797
ar********@student.ysu.edu (Andy Weinmann) wrote in message news:<b7**************************@posting.google. com>...
I need to make a form through which I can edit the information for
companies. I used a form in which the textboxes read from different
columns from a listbox to display the information for a company, but
it tells me the form is read-only, even when i set the "locked"
property for all of my textboxes to "no". What do I do? Is it
because the textboxes are reading from the listbox rather than the
table? If so, what code do I use to make the textboxes from the table
where the ID equals that of the company selected in the listbox?

TIA,
Andy


1. base your form on the Companies table.
2. put a combobox on the form and when the wizard prompts, choose "Go
to record..." or whatever to move to the record selected in the
combobox. Listboxes are great, but not really ideal for this process.
Besides, you don't need to select more than one value at a time...
(Or do you?)
Nov 13 '05 #2
I select a work category in a combo box, and then the listbox displays
the companies that fall into that work category. Would I be better
off putting the companies into a combobox then? If so, how do i go
about editing the information for the selected company?

pi********@hotmail.com (Pieter Linden) wrote in message news:<bf**************************@posting.google. com>...
ar********@student.ysu.edu (Andy Weinmann) wrote in message news:<b7**************************@posting.google. com>...
I need to make a form through which I can edit the information for
companies. I used a form in which the textboxes read from different
columns from a listbox to display the information for a company, but
it tells me the form is read-only, even when i set the "locked"
property for all of my textboxes to "no". What do I do? Is it
because the textboxes are reading from the listbox rather than the
table? If so, what code do I use to make the textboxes from the table
where the ID equals that of the company selected in the listbox?

TIA,
Andy


1. base your form on the Companies table.
2. put a combobox on the form and when the wizard prompts, choose "Go
to record..." or whatever to move to the record selected in the
combobox. Listboxes are great, but not really ideal for this process.
Besides, you don't need to select more than one value at a time...
(Or do you?)

Nov 13 '05 #3
ar********@student.ysu.edu (Andy Weinmann) wrote in message news:<b7**************************@posting.google. com>...
I select a work category in a combo box, and then the listbox displays
the companies that fall into that work category. Would I be better
off putting the companies into a combobox then? If so, how do i go
about editing the information for the selected company?


If you are already in a form based on the Company table, you should be
able to edit the records. is the form based on a query that makes the
recordset not updateable? (Like a summary query?) You haven't set the
form to be read-only or something like that, have you?
Nov 13 '05 #4
I'm not sure, that's my problem. I'm quite new to Access, and I
therefore am not sure of the best way to go about editing data in a
table through a form. I just know that for the person using the
database to be able to find the record they are looking for out of the
600 some in the table, they need to be able to sort them out by work
category, and then find them. Any advice you can giveme would be
greatly appreciated.
Nov 13 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: steve | last post by:
Hello, I am using ACCESS 2000 and am currently trying to make a database for a police department and they have several types of license classes. i.e A,B,C,D,E etc. What they have asked for is a...
8
by: Andy Weinmann | last post by:
I am trying to make a form in which i can view the ihe information for companies. I have a combobox which contains all of the work categories that the companies fit into. I have gotten the...
1
by: Rupert Street | last post by:
I have set up a combo box that contains descriptions of work carried out. I would like if possible to click on one entry then click on another to combine both entries to make a single entry...
1
by: Pavel Gusak | last post by:
Hello. I've found DataGrid built-in edit functionality useless. My DataGrid has 9 columns, and is shown just nice until I press 'Edit' on a row. ASP.NET creates 9 TextBoxes, all the same very big...
1
by: Karim | last post by:
I have a form built into an html table. One of the form elements is an asp.net dropdownlist. For some options in the listbox, I want to insert a new table row under the listbox to grab some more...
4
by: Alan Silver | last post by:
hello, I have a database table that stores names of schools, and I want o write a page that allows someone to change the list. I was wondering about showing the schools in a table, with...
3
by: CR | last post by:
Suppose you have a simple table consisting of Name, Address, and Phone#. If I want to allow the user to edit this table I do the following: I fill a listview or listbox control with the rows from...
5
by: dan heskett | last post by:
I'd like to modify the standard .net list box to allow in place editing of the data. I am owner drawing a complex listbox item, but first off, is this even advisable? I have a simple list and...
0
by: Frnak McKenney | last post by:
Can I use a bound ComboBox for both browsing and editing? I'm working on a small, standalone database application using Visual C#.NET 2003 and an Access data file. In order to keep the number...
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
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,...
0
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...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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,...
1
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...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.