473,398 Members | 2,188 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,398 software developers and data experts.

stupid access db, can't do good stuff

This db i created has been driving me nuts. I have this one table
LOCATIONS, and in the data entry forms, the user is suppose to change
the locations of the equipment or set a location when first entered. I
set the property not to expand and limit to list, yet they somehow
edit the data there anyways. I want to prevent that. I want them to be
able to choose the options in combo box (with data from table
locations) but not edit the locations it self (the choices)...the
locked option is not going to work because it doesn't let the user to
change from location to location...it needs to be able to do that but
not edit the listing (the list it self) help anyone...
Nov 12 '05 #1
5 6848
Almir wrote:
This db i created has been driving me nuts.
Its possible the db is a figment of your imagination.
I have this one table
LOCATIONS, and in the data entry forms, the user is suppose to change
the locations of the equipment or set a location when first entered. I
set the property not to expand and limit to list, yet they somehow
edit the data there anyways. I want to prevent that. I want them to be
able to choose the options in combo box (with data from table
locations) but not edit the locations it self (the choices)...the
locked option is not going to work because it doesn't let the user to
change from location to location...it needs to be able to do that but
not edit the listing (the list it self) help anyone...


Is the field they are updating a text box? Or is the field a Combo box?

If it is a combo box, you Set Limit To List to true/yes In the NotInList
event, you could enter something like
Msgbox "Select a location from the list."
Response = acdataerrcontinue

Now if you have a textbox, in the BeforeUpdate event you could do
something like this
Dim varLoc As Variant
varLoc = Dlookup("YourLocationTableFieldName", _\
"LocationTableName","YourLocationTableFieldNam e = " &
Me.YourLocationTableFieldName
If IsNull(varLoc) Then
msgbox "Please don't enter new locations"
Cancel = True
Endif
Due to your frustration, you didn't cover your problem suffieciently. Let
us know if you have a combo, a text box, both text and combo, how the data
is selected in the combo...whatever else that will help us in helping you.


Nov 12 '05 #2
My guess is that the user(s) is going to the table that provides the
list for the combo box, and changing that list. It's easy to do if
you're using a table to populate the dropdown list.

If the source is a table, can make the table hidden (right-click on the
table's name, click properties, check-yes "Hiddden"). Then make sure
the user's machine is set to not show hidden objects (Tools - Options -
View).

You also can set up an enforced relationship between such a short-list
table and the main table. Use Tools - Relationships

You can make them leave the table alone, or you can set the dropdown
list items another way. You could do it in the properties box (Row
Source Type = Value List, and Row Source is a list of items, like:
apples;peaches;bananas;pears;oranges
Another way is to set the list values via VBA code.

Good luck!
Bruce Pick

Almir wrote:
This db i created has been driving me nuts. I have this one table
LOCATIONS, and in the data entry forms, the user is suppose to change
the locations of the equipment or set a location when first entered. I
set the property not to expand and limit to list, yet they somehow
edit the data there anyways. I want to prevent that. I want them to be
able to choose the options in combo box (with data from table
locations) but not edit the locations it self (the choices)...the
locked option is not going to work because it doesn't let the user to
change from location to location...it needs to be able to do that but
not edit the listing (the list it self) help anyone...

Nov 12 '05 #3
"Almir" <al*****@yahoo.com> wrote in message
news:72**************************@posting.google.c om...
This db i created has been driving me nuts. I have this one table
LOCATIONS, and in the data entry forms, the user is suppose to change
the locations of the equipment or set a location when first entered. I
set the property not to expand and limit to list, yet they somehow
edit the data there anyways. I want to prevent that. I want them to be
able to choose the options in combo box (with data from table
locations) but not edit the locations it self (the choices)...the
locked option is not going to work because it doesn't let the user to
change from location to location...it needs to be able to do that but
not edit the listing (the list it self) help anyone...


Normally one uses a different table for the list of choices than the one
being written to by the form. Is that what you're doing? In cases where a
ComboBox gets it choices by looking back at the same table it is writing to
then any time an entry is made that is not in the list then of course the
choices in the list will change, but the LimitToList property should
prevent that.

Are you allowing any other access to the data besides this one form?
--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com
Nov 12 '05 #4

"It's possible the db is a figment of your imagination."
--Salad
Your combo box Control Source is set to the wrong table because your
database schema is wrong, because you have no clue how to build a database,
and because you are a moron.


"Almir" <al*****@yahoo.com> wrote in message
news:72**************************@posting.google.c om...
This db i created has been driving me nuts. I have this one table
LOCATIONS, and in the data entry forms, the user is suppose to change
the locations of the equipment or set a location when first entered. I
set the property not to expand and limit to list, yet they somehow
edit the data there anyways. I want to prevent that. I want them to be
able to choose the options in combo box (with data from table
locations) but not edit the locations it self (the choices)...the
locked option is not going to work because it doesn't let the user to
change from location to location...it needs to be able to do that but
not edit the listing (the list it self) help anyone...

Nov 12 '05 #5
"Brett Conway" <BC****@hotmail.com> wrote
Your combo box Control Source is . . .


"Brett" posted from the semi-anonymous news server "teranews" with a return
address of "hotmail", both frequently used by Don P Mellon hiding behind
aliases and impersonating others.
Nov 12 '05 #6

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

Similar topics

119
by: rhat | last post by:
I heard that beta 2 now makes ASP.NET xhtml compliant. Can anyone shed some light on what this will change and it will break stuff as converting HTML to XHTML pages DO break things. see,...
2
by: Dutchy | last post by:
Hi there, After spending several hours trying all I could imagine and search for in Google I gave up. In a continuous form I want to sort the choosen column by clicking the header (label) of...
98
by: rhat | last post by:
I heard that beta 2 now makes ASP.NET xhtml compliant. Can anyone shed some light on what this will change and it will break stuff as converting HTML to XHTML pages DO break things. see,...
15
by: sparks | last post by:
We get more and more data done in excel and then they want it imported into access. The data is just stupid....values of 1 to 5 we get a lot of 0's ok that alright but 1-jan ? we get colums...
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,...
0
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...

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.