Can anyone suggest a good place I can go to learn VBA for access.. I have spent the entire afternoon trying to find a place but they all sound the same.
Myself and a few of my colleagues want to petition our boss to be given Microsoft access training. Most of us are fairly experienced excel users but do not write our own macros or anything of that sort.
None of us have any prior experience with Access. Ideally we want a course based in London that will take us from ground up to expert users.
There seem to be loads of courses out there but we want to know which ones you feel are good and in particular which lecturers within a given company are best.
I have a parameter query for which the parameter is based on a form field entry (i wanted to avoid the dialog box popping up).
No problems with this....however, I want to create a chart based on the same query however, i get the following error message because it does not recognise the query parameter.
Error Message: The Microsoft Jet database engine does not recognise '[Forms]![frmChooseDTDate]!DateOccured' as a valid field name or expression.
I have a combo named cbogroup. I have a tblGroup with several records (active, non-active, nursery, etc.). One of the records is *ALL*. Using the CboGroup the user can pick any of the records. Howeverr, if they pick the *ALL* record, I want the query to pull up animalID based on all records in the TblGroup. If another record is picked (i.e. nursery), then the query will pull up only animalIDs that are in the 'Nursery'.Can I put a (iff then) in a query in order to differentiate a query based on all group records or a query based on only one record?
I have a form which uses a parameter based query to present an individual senior doctor with a list of names for of individual juniors to provide an assessment report on. When the first form opens the user enters their RespondentID.
Once senior has decided which names to comment on I have another form which has the questions to be answered which is opened by clicking a button on the first form.
How can I pass a parameter from the first form to the second so that only the records relevant to that senior doctor are displayed? The underlying table has 60 senior doctors and 20 junior doctors. The senior doctor is identified by the field RespondentID in the first form. I've tried putting a WhereClause in the FormOpen command but I still get a dialogue box asking for the parameter RespondentID when the second form is opened.
Hi. If someone could point me in the right direction, that would be great. Right now, I am not even sure if I should be trying to create an expression in Design View or if I should be trying Visual Basic.
I have a report query that shows each transaction for medications. There is a TransactionType field and a Quantity field. The values in the TransactionType field are "Prescribed" and "Stocked."
How can I get the # in the Quantity field to be set as positive or negative, based on the TransactionType, without the users having to key it (+/-) in themselves?
It would look like: Qty TransType -10 Prescribed 10 Stocked
I have an input form where i have a combobox thats related to that tblProducts that lists a series of products. The field next to it deliveres the ID_Number associated to that Product
Now what i'm trying to do is retrieve (automatically) the products PartNumber1 and PartNumber2 based on the ID_Products primary key.
A friend wanted me to write them a short db for their work, part of which involves emailing attachments automatically off a button. (They informed me at the time that they use microsoft office outlook as their e-mail system)
Not a problem I thought and started writting the db. When it came to running it on his system I found that he accessed the microsoft office outlook via the web, not via his desk top.
This is like nothing I've ever come across before. He goes to an external web address that his company have set up, enters his user and password details and a web page identical to microsoft office outlook opens up. From here he receives / sends his e-mail etc.
I suspect I know the answer to this question but I'm hoping somoene will prove me wrong. Can Access be used in any way so it automatically sends e-mails via a web based system?
I have table that is used to collect roster information the date field is formatted dddd/dd/mm/yyyy a second field requires the end user to insert W to designate the entry as a weekend date. The end user's often forget to insert the W (not functional) I need a way to code the field to look @ date field and update itself with a W if [DateField] is a weekend date.
A query calculates the roster hours and * the hours field by 1.5 if the W is true. The query works fine, I just want to automate the "W"
I would like a textbox that is based on whatever is set in the Application Title in the startup function. I have seen threads for changing the AppTitle, but not just for a textbox base on AppTitle.
First of all I hope this question is relevant to this part of the forum, I thought this was the best place to put it, but my ignorance of the subject may mean it ends up being more closely related to one of the other areas.
I'm struggling with some statistical reporting on Email Enquiries, which I'm currently doing manually using Advanced Find in the Outlook Public Folders and putting counts into an Excel spreadsheet. I find the whole thing quite ackward (as you might imagine), and the Advanced Find in Outlook frustrates me as it can be quite limiting.
What I'd like to do is set up an Access Data Project as a front-end for the Exchange folders concerned. I'm pretty well versed in MDB's but I've never set up an ADP before. I assume this is possible as I'm under the impression that MS Exchange is basically an SQL Server database. Is this correct? Will I be able to configure it using the Wizard that appears when I create a new ADP (if given permission by the MS Exchange Admin)?
I'm working in Access 2003 I have a table of projects done by my company, which includes -organization name -project year -service 1 provided -service 2 provided -service 3 provided -service 4 provided -project fee -project consultant 1 -project consultant 2 -project consultant 3
I've created a Query Based Form where you can enter in any combination of search criteria (e.g. org name and btwn 2001-2004) and the button press runs a query that returns a table of projects that match all the criteria you've entered.
I've figured out (I have no formal Access or programming training) what to set the criteria as in the query so you can get info by entering org. name, project year (with start and end dates) and/or project fee (with bottom and top amts).
The issue that I'm having is that I want to be able to enter a consultant name into the Form, and have the query return any projects that have that consultant listed a either project consultant 1,2 or 3 - and the same idea for the service provided. Right now I can only get the query to look in the 'service 1 provided' and 'project consultant 1' columns.
I had a thought that I could run 3 different queries - 1 that will look at org, date and fee, a 2nd that will look at all consultants, and a 3rd that will look at all services - and then run a 4th that would give me a table that only showed projects that appeared in all 3 of the other queries. However I haven't been able to figure this out, nor do I know if it's the best way to achieve my desired result. Right now I have the 4th (using UNION) showing all projects that show up on ANY of the 3 queries, plus the button press makes all 4 query result tables pop up, and I'd like it if only the 4th (final) query produced a visible result.
Any ideas or help would be greatly appreciated. Thanks!
Hi I have a couple of tables that should have an automathed value. What I need is to get the last RecordId from the table from where we get the last RecordNr and insert the next value (RecordNr) in a new record. I tried to do this autom. in the table by making the RecordNr a numeric Value with a mask for 000 numbers and a +1 as a standard value but it doesn't work. What can I do? Should it be a function/query?
I have a list of sites (approx 15,000) that I need to update. Basically, against each site we store a region code (HR1 - HR7) and we have decided to increase the number of regions we operate with. I have created a spreadsheet that states the post codes included in each new region (NR) and now I want to create a query that looks at the post code of the site, then according to my spreadsheet, changes it to the new region. There are no new sites to be added, simply old ones to be updated.
How can I do this easily? I have imported my spreadhseet into access, and I have all the data there - just unsure of the query to update.....
I've got a table that I, with help of a query and many criterias on different fields, can filter so that I get the records I desire to have. I then done a chart out of these records. So far everything works..
but now to the problem... The table is among other things based on years and quaters. I want to be able to compare different quaters. So what I've done is to make a new query that has the same criteria as the first query except the criteria for years and qutarers. That criteria is taken from other comboboxes. (All the criteria are taken from a form with different combos).
So finaly what I've tried to do is to do a third query based on the two first queries so that I there would be able to take the fields I want and calculate the difference between them. That doesn't work!?...
It says: "You have chosen fields from record sources which the wizard can't connect. You may have chosen fields drom a table and from a query based on that table. If so, try choosing fields from only the table or only the query"
Well hello everyone. I'm building some queries that need to have a specific Top N amount read from a value in a table (or form). Can someone please tell me how to do that without using the query Top N drop-down? I have this built into a VBA module, so it's possible I can change the Top N from there. Thanks!
I have table with filed with jobs that our IT’s have done for that day, the table is updated daily, based on my table I have created my query, I have set some criteria for some fields though, as follow:
Month = [Forms]![DailyWorkForm]![commonth] Year = [Forms]![DailyWorkForm]![comyear] ITName = [Forms]![DailyWorkForm]![comit] Day = [Forms]![DailyWorkForm]![comday]
on my form I have commonth, comyear, comit, comday and a command button that will open a report based on the query which will be based on my 4 combo boxes on my form, ok I hope I didn’t make you all really confused, this is the question what if the user inputs on 2 combo only, meaning that if month = may and year = 2005 and left ITname and day empty, I still want the query to run, how can I do that?
Sub Service ID (primary key) Sub Service Main Service ID (foreign key)
one-to-many relationship
I would like to query the tables, so you search on the Sub Service and it returns all of the Main Services it come under. I would like this query to run off an Input Box that will allow me to type in the Sub Service or a word.
I have managed to get the Input Box, by putting the following code into the criteria :InputBox («prompt», «title», «default», «xpos», «ypos»). But when I type something in the search fails. I have chopped and changed the fields I search on, but can't get it quite right.
Can anyone help me on what fields to choose and what I need to set in the criteria to get the search running properly from the input box?
Also is there any way to program Access or VB to return the results in a message box e.g. **** is a Sub Service of ***** - listing all main services it appears under?
Hey guys I have a question for you. I have two forms, "frmStatementDialog" and "frmStatements" The first form is meant to serve as a pop up that occurs when the frmStatements is open and I have a macro to do just that. The kicker is I have two unbound text boxes in that form for "Month" and "Year".
Now I want to be able to type in that form and hit "OK" and then once it does that it will find all the records in tblAccountsReceivable that have those two items in their respected fields will show up and be displayed in the continuous form, frmStatements. Another catch to this is I want it so that if I add records via this form, the Month and Year are already updated with the previous search information.
Questions that you have to help me? Please ask! This is starting to really frustrate me... I've tried nearly everything I could think of and right now I don't know the best way to explain where I am at so please just assume I'm starting from the beginning.
Hi. I have a situation where I have 2 tables A (20K records) and B (2K records). Each table has a field 'Name'.
I'm trying to figure out a query that will return all the records in table A that have a LIKE match in table B, i.e a the name in table B is somewhere in the record in table A (pattern matching).
So, it looks as tough I would need to step through the records in table B, take the data in the 'Name' field, compare it with a Like '*<whatever>*' match on table A to return any records that contain that data from table B.
Then move onto the next record in table B and compare it again to all of table A and so on.
The result set would then display just the unique rows from table A that had a pattern match with one of the rows in table B.
Hey guys, apologies in advance for a question which you may have answered many times, I have searched the net, my textbook and these forums but to no avail.
I have a table, 'tblStock'.
I have two fields within this table, 'Stock Level' and 'Minimum Stock'.
I want to run a query on this table, finding all records where the value in 'Stock Level' is LOWER than the value in 'Minimum Stock'.
How would I go about setting up this query? What criteria would I type? I have tried typing <"Minimum Stock" in the criteria for 'Stock Level' but it didn't work.