I would like to apologize for my ignorance beforehand. I've studied some tutorials about ms access and i'm still quite lost. I am not sure how to phrase this question because I am not familiar with access terms and such.
I am trying to create a form with these problems
filling up a text box would allow me to select in a dropdown field related fields from the table.
e.g. putting uni in the textbox would show unicorn, unicode, university in the drop down
button that allows me to add more rows in this form.
e.g. clicking [add more rows] would generate a row of textboxes that are fillable
button that allows me to submit the whole form into the database (this would have to account for the growing number of rows based on the [add more rows])
a reset form button (i've read that some people just open and close the form in a button)
I have some knowledge of SQL but I am totally new to access. I would greatly appreciate links or some guide as to where I would be able to find these answers as I am quite confused as to what to google myself.
Thank you in advance
Related
I have a MS Word document that implements a form people can fill in. It is mostly just table cells that represent text fields people can type in and checkbox controls that allow them to check the box to select an option. I then save the document as a PDF document.
When I test the PDF form by selecting the "fill and sign" option, I've found that some checkboxes are "checkable", but others are not. They were all added to the form the same way, so I'm at a loss as to why some work and others do not.
I've looked at the properties of the control, but am not seeing anything different from a working checkbox vs a non-working checkbox.
Has anyone run into this? Any ideas on what could be wrong? Is there a MS forum that might be a better place for this question?
Please forgive me if this question is too vague or extensive. I have limited experience with Access, SQL, and VBA and have a problem at work that I just can't solve. I'm trying to add a "new button" button to the user interface on our Access database.
I would like it to maybe bring up another form that allows you to input a query you want to make into a quick link on the home page. Obviously this would only be accessible to certain users but I can handle that part.
I don't necessarily need the code written, just an idea of where to start. So far all I've been able to do is hard code a new query or link into a button each team I want to make one. I want this process to be simplified so that anybody can make a button even if they don't know how to use Access very well.
Again, any help would be greatly appreciated and feel free to tell me to get lost if this is too vast or general a question.
I would like it to maybe bring up another form that allows you to input a query
The above seems very confusing. You are asking how a form can be used or launched or displayed to allow the user to add a new record. Then you toss in this VERY unrelated concept of some query? What does some query have to do with adding a new record?
If you want to add a new record, and you are in a form that is displaying current records, then behind the button, you can execute this line of code to jump to a new record ready for data entry:
DoCmd.GoToRecord , , acNewRec
So, that is one line of code.
If you want to launch an existing form and have it start out with a new clean fresh record, then use this:
DoCmd.OpenForm "frmCustomers", , , , acFormAdd
The above will launch the given from in "add mode" and thus you are again on a new fresh record ready for data entry.
The issue(s) of some query etc. for the user What does that have to do with wanting the user to add a new record? So that part does not seem to apply to the basic idea of presenting a form with a new record which allows the user to add that record in question.
You have to explain what all the hub bub about this magic query issue but to jump a form to a new record for the user? Just use the first line of code behind a button.
And if you need to launch a form in "add mode", then use the 2nd example one line of code behind the button in question. None of this has really anything to do with some "query" in regards to you wanting the user to add a new record. You can expand on what you mean by some user query, but you have several options to jump an existing form to a new record, or launch a form in "add mode" to allow adding of a record. In these cases, you don't need nor want to write or deal with some SQL query.
i've had a look around for an answer to this but couldn't find a definitive answer (if some can point me at a thread that does answer this i'd appreciate it).
I've created basic database where queries are logged and then reported on. When someone logs a new query it goes into a table called "TBL Main Log", this is done on a basic data entry form and when they select "Country" a field called "Owner" is auto populated. However, when i click save at the bottom, this data doesn't get pulled through into "TBL Main Log". My save is run off a basic close window and save macro.
I have set up my autofill being fed off a combo box for "Country". I'm assuming i need to do something in the event properties after update. I'm pretty limited with my coding abilities so could answers be dumbed down as much as possible for me.
Cheers
Luke
Based on the comments:
me.Refresh on forms forces bound controls to save to the table.
I have been trying to find an answer to this on the internet but with no success so far.
On a winform application I am working on, I have a principal form where users can fill a large datagrid (up to 1000 X 18) by either manually inserting value by value or pasting from an excel table (I already wrote the code for this). Also there are a few other forms where users can input other data through additional datagrids or textboxes. The Idea is to get the user to open each form, fill the data, and then close it and go to fill the next form. Input data will be a combination of boolean, double and strings. Then there is on the principal form a "CALCULATE" button which performs operations on data coming from all the previous forms and displays the results in a "OUTPUT" form with a datagrid and a panel (through graphics). My question are:
What is the best way to save data from each form so that if the users close and then reopen that form, the data inserted previously are displayed and ready to be modified,deleted etc. I considered writing and reading from a .txt or XML, using databases,.CSV, my.settings(), etc, but I would like to ask what would be the best way to do it.
How to write code that performs math operations using data that have been inserted on different forms, after these forms have been filled and then closed
How to save all data so that I close and then launch the application again, all data are still there.
Any help would be much appreciated, thanks
I'm sure this question has an easy answer, but I have a short timeline and need to get it resolved ASAP.
I'd like to have a content control drop down that when the user makes a selection, will update a legacy text box formField with the selected value.
I have no trouble selecting form fields and setting them using VBA code:
ActiveDocument.FormFields("MyFieldName").Result
But I'm having trouble selecting the value from the content control, and also figuring out how to execute the macro "onExit" like I can with legacy fields / drop downs.
Any suggestions?
Google "vba content control events".
For example, see the last post by Greg Maxey at how-to-catch-custom-control-events-with-vba-macro and towards the bottom of his page http://gregmaxey.mvps.org/word_tip_pages/content_controls.html