Prevent Inadvertant Updates To A Combo Box
Jun 17, 2006
I have a combo box in a form that I want to prevent "unwanted" changes to this comb box.
I'm trying to find a way that if someone changes a combobox, it prompts them "are you sure you want to change this?"
If the answer is yes then it lets them change it, but if the answer is no it returns it to the previous value.
I know how to use a Msgbox and return a "yes" or "no" value but how do I programaticatically do the rest???
View Replies
ADVERTISEMENT
Jul 10, 2012
I have built a database and within it my queries I use for reporting make tables in a separate database. This allows me to work in my data base and update info as needed. My problem is that my make table queries wont run if anyone has one of the report pivot tables open. I have added macros to all the Excel files that pull from the reporting DB but I still have several times when I cannot update because someone is using the pivot table, Is there a way to allow me to update the report DB's while the pivot tables are open? I have tried using manual refresh methods and disabling auto update on open but the result is the same.
View 2 Replies
View Related
Jun 29, 2005
I have a time database which has a form to enter time. When entering time, The user must also select an item in a combo box that gives what category the user worked in. There are about 40 or so different categories. I want to know if it is possible to update the cobo box to the user's most recent selections. For example: if the user selects Management, which is at the bottom of the list, I would like to see Management at the top of the next list for the next time entry so that the user does not have to scroll down to the bottom again. Anyone have any ideas???
Thanks
View 5 Replies
View Related
Jul 15, 2005
Hi, please help!
I have a work order entry form with a "Client" combo box. The Limit to List property is set to YES. If a client is not on the list, I get a prompt to create new client account in a different form. This all works fine.
But after I create a new client and get back to teh work order form, the client does not appear in the combo box unless I close the form and re-open it first. This is very annoying.
Any suggestions? Thank you.
View 4 Replies
View Related
May 4, 2015
I'm trying to update a combobox(called TypeCombo) list values after I select a value in another Combobox(called manCombo). The values for both Combobox comes from the table called EquipmentTable. Which has 3 fields Manufacturer, Type and Model.
Code:
Private Sub ManCombo_AfterUpdate()
Me.TypeCombo.Value = DLookup("[Type]", "EquipmentTable", "Manufacturer = " & Me.ManCombo.Value)
End Sub
I know that the value I select in ManCombo is being passed into the DLookup but TypeCombo.Value always equals Null. Is this because the Dlookup returns multiple values and if so should the code be something like
Code:
Private Sub ManCombo_AfterUpdate()
Me.TypeCombo.List = DLookup("[Type]", "EquipmentTable", "Manufacturer = " & Me.ManCombo.Value)
End Sub
View 5 Replies
View Related
May 24, 2005
Hi,
I am using the combo box in a form for selecting a report to be printed out. The source is a table with all the report names stored. I would like to prevent users from changing the data and yet they can can click on 1 single report they need. I cannot disable the allowedits in the combo box which will prevent the user from selecting. Is there a solution to this or should I use another method (if any). Thanks for any reply.
View 3 Replies
View Related
May 21, 2015
I have a combo box on my form which loads fields from a table and displays them using
Code:
SELECT DISTINCT table_team.team FROM table_team;
I then use
Code:
=[qry_showteamforedit]![team]
in the default value for the combobox to show the team which is saved in the current record.This is the qry_showteamforedit:
Code:
SELECT table_team.team
FROM table_team RIGHT JOIN table_staff_details ON table_team.ID = table_staff_details.team
WHERE table_team.ID = table_staff_details.team;
My problem is when I move through the records, if I change the selected value using the combo box it changes the actual value in the table from the one that was selected to the new one. If I was on record 1 and the teamid saved in there was 1 . It would display "team one" but if I changed that to "team two" it would change record one to say "team two" instead of "team one".I have been searching and found that this is because it is bound to the table so need to remove the text from Control Source, which when I do, breaks it, and it doesn't display the saved team.
what I would like it to do is display all the teams, but default to the one saved by using the id saved in the main table, but allow me to change this value. I would also like a second cascading combo box which will display a list of subteams dependent on what main team was selected and again, default to the values saved in the main table. I have managed to get cascading combo boxes working but combining them with my tables and queries is proving difficult. This is how my tables would be ( just showing the relevant fields)
Staff_table
ID Name teamID
1 Dave 1
2 Tom 1
3 Matt 2
team_table
ID team subteam
1 team1 subteam1
2 team1 subteam2
3 team1 subteam3
4 team2 subteam4
Is it is the subteams that will be unique I would like to save the subteam ID to the teamID field of the staff_table. that way i can retrieve the team and the subteam using the same ID.
View 2 Replies
View Related
Jan 17, 2005
Sorry for my English, but i try to description my problem.
I have one form and i want all fields to have the privelage for update
without only the field of s/n ( Key of table ) ???
Any ideas!!! ( I am noob in access and VB )
Help me plz.
Thanks
View 2 Replies
View Related
Jan 4, 2006
* I have a form that has a list box at the bottom of the form and all the fields (text boxes) displayed above.
* As I select a record in the List Box it shows that record in the text boxes above and allows the user to edit that specific record.
* I went one step futher and created drop down boxes out of the TextBoxes, which now reference a lookup table.
* Although the users have a drop down box they can still enter a new entry.
My problem is that I want the lookup table to be updated with any new entrys that do not exist in the lookup table. I had this working at one point but cannot remember how or what I did.
Any thoughts?
Thanks in advance
View 3 Replies
View Related
Mar 27, 2006
Back at you guys with hopefully one more question (btw the command button code worked perfectly thanks)
Another thing my database has to be setup for is updates, Roughly 30 people will be using this database and to have them re-copy and paste the new database releases is out of the questions.
Does anyone have experience setting up code that automatically checks the version of the database created and if it differs downloads/installs the new version and the restarts the database so the associate will then be working in the current version?
I am looking to be pointed in the right direction to get this figured out, thanks.
View 3 Replies
View Related
Oct 23, 2006
Hi there,I know very little about Access but been asked to find out if this is possible:On a database we have a date field for when subscription is due, is there any way that if a DirectDebit method of payment has been chosen, when the date of renewal is, access will automatically update the year to the next one?Thank you very muchCathy
View 1 Replies
View Related
Jul 2, 2007
Hi
Have a bit of an odd problem with the DB im using at work. I have 1 DB on a shared drive that is accessed by 4 of us from our desktop PC's (password protected via 1 password that we all use - no separate logins).
The problem comes that we make changes to the data, exit via an exit button that uses a save all macro (that all works fine), however when we go back into to DB there are some times that the changes made have been lost and the data has reverted back to the previous version. There doesn't seem to be any specific pattern to this, it happens at random times and to random people.
Does anyone know what may be causing this, or anyway that i can prevent it happening?
much appreciated.
View 1 Replies
View Related
Mar 31, 2005
Hi all
I have a database that stores customer records and their associated insurance details. I need to be able to track any changes made to that record within a set time period ie if details are changed fine it is reported next time report is run. But if details are changed more than once in between reports then first detail change is lost.
I would like to work out a way that changes can be written to a ??seperate version of the table?? and stored in there to be reported seperately and not just the final change as is the snapshot nature of a report? Is this possible? Could I possible make another version of the main table appended onto it? I feel I 'know' what I need to do but not how to even begin it! Any help would be appreciated.
DDiver
View 1 Replies
View Related
Sep 22, 2006
I have read all of the audit trail stuff and searched on my subject but I think my solution could be simpler,
All I want to do is copy the values of the current record on my form into a history table with all the same fields.
Example Form:
[ID], [Machine], [Task], [Task Due], [Task Complete]
I want to put a button on the form that reads complete task and when the user pushes the button it copies all of the details for that specific record they are looking at into my History Table that contains all of the same fields.
This will give me basic history on when each task was completed for a machine and I can access for reporting
View 1 Replies
View Related
Sep 13, 2005
I have a project that produces a roll report. To do this, I have two tables:
T1 (roughly 20,000 records)
ID (Primary Key), PrevAmt, CurrAmt, Action
T2 (roughly 40,000 records)
ID, Amt (linked Excel spreadsheet)
I then run 4 queries in sequence
Q1: Update T1 set PrevAmt=CurrAmt, CurrAmt=0;
Q2: INSERT INTO T1 (ID, PrevAmt, CurrAmt) SELECT ID, 0, 0 FROM T2; /* keys that already exists will fail to insert)*/
Q3: Update T1 INNER JOIN T2 ON T1.ID = T2.ID SET T1.CurrAmt=T1.CurrAmt + T2.Amt;
Q4: Update T1 SET Action = iif(PrevAmt=0 and CurrAmt<>0,"NEW",iif(PrevAmt<>0 and CurrAmt=0,"DROPPED",iif(PrevAmt<>CurrAmt,"CHANGED","UNCHANGED")));
T1 and the queries is in an Access file on a network drive. T2 is a link to an Excel sheet on a network drive.
When I run the queries from a PC on the local LAN, it takes about 2 minutes to update. I consider that acceptible. But I now have to run it from a PC attached to the network via a VPN over a somewhat slow DSL line. The queries take over 20 minutes to run. I want to cut that time down. But the Access file and the Excel file need to stay put as other users use them for other purposes. (Though they know not to access them till after they see my roll report in their in-box.)
What can I do to decrease the update time on this?
Thanks,
David
View 2 Replies
View Related
Apr 7, 2006
I'm new at access and have added some expressions to a couple of my forms but the table is not being updated with the results. help!
View 5 Replies
View Related
Mar 6, 2006
Hi there all i need to set a field on my form not to accept any updates to what ever was typed in the field before it was saved the first time kinda like After update event = no updates :confused:
Any idea on how this can be achived please.
Thanks so very much in advanced.
TIDMAN.....
View 3 Replies
View Related
Nov 21, 2004
How do I create a table relationship where a secondary reltated table stores past dates, status code and customer ID. For example: I want to keep track of the past dates that an order was revised and why it was revised. So, if I have a customer who was due for installation on 10/21/04 and status is PEND for pending. THen on 10/18/94 I change the date of PEND to 10/25/04. I want to keep track of the times it changed and the reason why. HOw can I make the program automatically create a record in the revision table storing the past code, reason and date using customer ID as key and teh revision table would allow multiple records for each customer ID. DId I make sense?
View 2 Replies
View Related
Feb 21, 2007
I am trying to come up with a way to update tables every week from two databases. I have one database for a satellite office and one for corporate. Each office has BOTH databases so as to keep up with their own data (we are not on a network). Each office will have to export their Project Table data to the other and then upload (update) the corresponding database. So:
ABC Division exports their project data from their Project Table once a week and sends to DEF Division and vice versa. Then ABC takes the exported Data from DEF and updates their database for DEF and vice versa.
Field names and additional field names will not happen; however, the data in those fields may be updated OR there may be new records added. So basically, I guess I need to delete the old and put in the new every week but make it VERY easy for the end users (who know nothing about Access). The tables that would be updated are related to other tables.
Does anyone have any suggestions where to get started? I've tried an Append query and that only adds records, not looks for changes in those records.
View 8 Replies
View Related
May 7, 2006
Ok I been at this most of the day and I have got no where fast.
I have a table with two fields [type] and [amount]
when populated I have something like this
hats 23
coats 33
shoes10
hats 18
coats 19
shoes 5
I need the individual sums of each of these records. for example shoes 15
I have created a query that does this for me. and I have put this information into a form. How do I get to the values to use else where. The form I created was a single form which shows coats 54 then by using the record navigation I get shoes 15. I think I need to pass these values into VBA but have not go a clue where to start.
Please help.
View 11 Replies
View Related
Sep 19, 2005
Hi,
I have a form with a number of drop-down lists on it and each of these lists is bound to a field in a table.
When I return the results of a search to this form I want to allow users to be able to cycle through the records and change them if they want. However, the changes should only be saved if the user clicks on the "update record button". This button is simply the save record button by the MS Access wizard.
At the moment if they change the value in one of the drop down lists and move onto the next record the change is saved even though the user doesn't click any button. I want to prevent this from happening.
Any ideas on how I might achieve this?
If I prevent "AllowEdits" in the form properties I can't update the form using the "update record button" either.
Many Thanks,
View 2 Replies
View Related
Mar 10, 2008
When I open a form, I want it to automatically check to see if there is are any updated files. I already have imported files into Access, but want to automatically check to see weather there have been any updates to the files.
Example
Form opens,
Checks the “C:MyDouments” for any updated Excel Spreadsheets (This could be done by the modify date and time),
Imports the updated Excel Spreadsheet into Access
End
If the code checks the Modify date and time of a excel file, how can I import these values into Access i.e. I could have some query that would check the date and time of an excel file against the date and time in the access table – and if different import the latest version.
Also check for any new files.
Any ideas or help would be much appreciated
View 2 Replies
View Related
Mar 21, 2013
I have a table into which users insert records through a user form, I need to track the updates made in a record in a data set and i have a user log in function, it needs to tell me who updated last and what did they update.
View 1 Replies
View Related
Jan 20, 2006
I am a new Access user. I have created a database to track and inventory animals brought to a local animal shelter. The database includes information such as when the animal was brought in, who dropped it off, when it was adopted (Hopefully!), etc. The database is being used by people who have limited computer experience and the challenge has been to automate it and simplify it as much as possible. I have created several Switchboard pages to try and accomplish this.
I have done research through Google and MS support and have found little help with a solution to this problem:
When an animal comes to the shelter, it is held for three days before it becomes available for adoption. I have created seperate fields for Date In Day, Date In Month and Date In Year. There is also a field detailing the animals adoptability status. This field is left blank in the intake process, and is then manually updated to Adoptable, Biter, etc., after the three day period. Is there a way to automate the Adoptability Assessment Field (which is a Lookup Table Field) so that it changes from blank to Adoptable after the three day period? (We have very few animals come in that are marked as Biters, so I just need the field to change over to Adoptable after three days have passed. Unless a solution can be presented to filter animals with Biter status out of the solution.)
I truly appreciate any help that can be offered.
View 4 Replies
View Related
Feb 6, 2006
Hi there all, I tried the search option on this board but maybe its just that i dont know how to ask the question.
I have a text box on my form with and afterupdate event that inputs todays date in to another text box on the same form, can this be set so that once that date is apperas in the text box that no further updates to the date can take place.
Thanks in advance for any help.
TIDMAN.....:confused:
View 6 Replies
View Related
Dec 27, 2006
Howdy!
I split my db last week and put both front end and back end files in a shared network folder. I backup the db every day to a different folder on the network server and also to my laptop. I usually backup right after a form update so that the latest version of the form is available to users who want to update their local copy of the front end. I've been sending email alerts to the users.
My question is this: What is the best way to (1) make sure my backup updates the front end on the network server and (2) how can I automatically alert users to update to the latest version of the front end?
Thanks gurus!
bugleboy:o
View 13 Replies
View Related