hi
i have a database set up with a table for monitoring registarations for seminars each attendee can attendee up to three seminars and as such i have three fields in this table (amoung other) SeminarId1, SeminarID2, SeminarID3. Each one of these has a one to many realationship with the primary key of the seminar table SeminarId. On the form i wish to have the name of the seminars apear next to each of these when the id is entered. This always works for me when the object is in one realationship yet i can only work out how to get one seminar textbox that shows the data of SeminarId1 (using the wizard) yet cannot work out how to do this for this situation.
Thanks in advance
Rowan
p.s is it also possible to restrict the amount of times a certain piece of data can be entered in a field (each seminar can only take 30 people) so it would be nice if after the field contains 30 entries for seminar 1 he input mask changed to no longer accept this value,
i am confident with vb and am sure this would need to be done in code just wondering if there is an easier way.
I want to create a form that allows users to update multiple fields for multiple assets. Below is what I came up with:
Ideally, I'd like the subform to be filled in by having the user select multiple Assets from the S/N combobox field which would then auto-populate the "Type" field. Then they would fill out the appropriate fields they want edited in the top part of the form. They hit save and magic happens. This would also be nice because only assets they want edited would be displayed (easier on the eyes) and no distinguishing would be necessary. To do it this way, I know I would need to use a temp table but I wanna avoid using temp tables.
I know I can do this by adding a Yes/No field in the "Asset" table, setting the "Asset" table as the subform's recordsource, and then putting a checkbox in the subform and allowing them to check the assets that they want to edit (which would also allow me to sort it instantly so that checked Assets are at the top of the datasheet for easy viewing), but I would like to know if there's a way of accomplishing this without the use of checkboxes.
I know I could also use a listbox and that allows them to multi-select items, but I'm not sure if that allows me to group all selected items at the top of the listbox for easy viewing of selected items. Plus it would involve a lot of scrolling (there are over 2k assets).
I have a sub form that shows me a companies history. This subform is used on 2 different Parent forms. The record source for the sub form uses a criteria that looks at a companyID field on the parent to determine which records to return. My question is how do I have the query criteria depend on which form is currently opened? The criteria would look something like this:
[Forms]![frmCompanyHistory]![txtCompanyID] OR [Forms]![frmCompany_Project_Details]![txtCompanyID]
If I open the form with this criteria, I will be asked for a value in txtcompanyID for whatever parent form is not open. How do I properly do this without making multiple queries that are almost identical?
I have multiple sub forms and want to add specific text boxes of different sub forms into one another sub form. Then all sub forms are incorporated in one main unbound form.
I am a girl guide leader trying to make a faster way to keep track of my unit's completed badge and program work. I have made tables for every area I need (I started with one table but it was too large to change into a form).
In total I have:
- Basic Member table (main information like their name and how many years they have been in, whether they are still in the unit, etc) - Program area tables - Interest badge tables
What I want to do is be able to "add/edit" members from the main form, then go to all the sub forms for their program and badge work -- problem is, how to link them!
I have forms that are printed based on a query parameter of [enter item number]. There are several of these forms that I would like to print at one time (with one command) making it easier for the user to gather their information at the beginning of the day. I also don't want to lose the ability to print them out individually as we do now.
I want create combination of navigation forms, navigation forms with two horizontal level and vertical level that link to navigation buttons in second level of horizontal navigation.
I have a Main Form with 10 Buttons on the Left side (Right side of the Form is Blank. On Click the Main Forms Closes and respective Forms opens based on the button I Clicked.
Now over here I wish to Keep the MainForm OPEN and subsequently open the other Form on the Right Side in Blank area.
I've been trying to figure a way to minimize my code in a module. I currently have three function built excalty the same way to work with three different forms. Each textbox in all the forms are named the same now what I'm trying to do is have the function identify which form called the function and where should the data be.
Code: Dim frmCurrentForm As Form Set frmCurrentForm = Screen.ActiveFormMsgBox "Current form is " & frmCurrentForm.Name
Once that is found. have something like this.
Code: Select Case frmCurrentForm.Name Case 1 WorkForm = Form1
Case 2 WorkForm = Form2
End Code: WorkForm.NameField = "John Smith"
No matter if all three forms are open the data should only go to the one that declared the function.
Hi, very new to access and chucked in at the deep end. we require a database which will be used by multiple users to place orders. the users are at different locations although they all log on via terminal services so connection issues are minimal. i understand that we require a fe/be database because of the users. the users will only work with forms and reports. they should not be allowed to see the other users orders and the form needs to automatically put the users id into the order. the only way i can see to achieve this is to make a custom form up for each location. would i be right in assuming this? if so, how would i prevent one location from opening up another locations form? infact, i wouldn't want one location to know that there are other forms for other locations. any help would be appreciated. thanks
I'm sure this one has been asked time and time again!
I currently have a set of staff questionairres each on a different table. Currently when I want to export all the scores for one employee to excel (eventually) I have a macro which runs 7 queries, but each asks for the same criteria (Date To & From) and (Staff Name) in turn - very time consuming!
How do I create a query or macro which will ask once for a date range and an employee name and apply to all of my queries?
I am a novice on access and am trying to do this without SQL
I am trying to print one record displayed in a form. I also need to print one record in another form at different times. I have one form working fine. It prints out the displayed record in my report just fine by clicking the Print_report button.
I copied the report and renamed it. in this form the print button is named Print_Requested. When I open this form and click the Print_Requested button, it prints out everything except for the data.
Edit: The reason I made a duplicate report is because it was doing the same thing when I tried to print the same report from different forms. One report is all I need, but I need to be able to print it from different forms.
Here is my code: -----------------------------
Private Sub Print_report_Click() On Error GoTo Err_Print_report_Click
Scenario - I have one main form containing all the customer details. From this I can open several other forms, containing various other information about the services that they have applied for, and the stage of their application.
Some of these forms also have forms that can be opened from within them, so there can be at times three tiers of forms.
When I add a new customer on the main form, I then open the second form, add more info, then choose from another selection of forms. So at this stage there are 3 forms open. The final form contains a command button to run a report.
However to get the report to work, I have to shut down the last two forms and re-open them, even if I refresh the data on all of the forms.
Is there any way I can create a command button on the final form that will synchronise the data on all of the forms that are open and make the report work first time? Is there a way of doing this using Macros?
I have 2 subforms embedded into one main form. Everything looks great on screen, and even when I hit the print preview button. But when I print the form out the 2 embedded forms will not print.
I am using multiple forms to enter some data. When I enter the data in the second form and go back to the main (first) entry form it always goes back to the first record. Also when I am at a record at the first form and go to the second form it always starts at the first record. Is there a way to make the two forms match the record I am entering. I am entering data into the same table. I needed to use two forms because I could not fit all the information on one form. Thanks
Hello- I’ve searched the forums and was not able to find the answer, so I was hoping someone would be able to help with this.
I would like to open multiple forms (cascade) in the same .mdb file when the first form is opened. There are a total of 4 forms. This is probably a very simple thing to do. I'm not much of an Access person to simple things like these throw me for a loop. Cheers to anyone who can help. -Tom
I would like to create a text box where I can input todays date, then I want to be able to select the tables I want to update with that information. So if I input todays date I can then update my Stock, Sales and Control tables with todays date. Tomorrow I would only like to update the Control and Tape tables with it as its the weekend. I been playing around with 'new date for next record' scenario but the problem is that on the weekend we would not input any data into some of the tables. Hope I've explained myself clear enough.
I wonder if it's possible to bind one form to more than one table without using 'sub-form'? I basically have one text box that I want to bind to a different table than the one the form is linked to and I don't know if I should use a subform.
I have a query to update data to a table which takes the account ID from the form and updates. This works fine as is.
The problem is that the update can be made on several different forms and was wondering whether there was a way to conditionally select the ID in the query based on what form is open. I have tried some combinations of IIF statements but every time I get a parameter prompt for the Forms that are not open.
Is there any way around this or do I just need a separate query for each form. Any advice would be appreciated.
I am interested in making a form based on 2 tables. I would like to put in ID and wish that the name and contact information is automatically filled using the ID match from a second table. Then I proceed with the data entry which is saved in the first table. How do I do the autofill based on the ID check. Do I need some code for that?
Hello friends,I have a pretty noobish question. I was wondering if it was possible to have several (3 in my case) different forms that apply data to a single table? The main table has three different types of data: 1. Client info 2. Services A 3.Services B. Each type of data has about 7/50/12 different fields of data in each set so that trying to include all this data on a single form is not very user friendly due to clutter.I have three forms that input data into the table, however the record navigation command buttons that I have on the forms do not apply the data to the correct record. For instance, when I input the Client info for client #2, and click the "open services A form" command button, the form opens on client #1 Services A instead of to a new record. Is this something I have done wrong, or is it due more to MS Access limitations? Thanks
I'm making a large database. There are over 100 questions per "chapter" of the data I need to enter. The forms aren't large enough to accept everything at once so I broke up the chapters into a few smaller forms. The problem I'm having now is it saying "you can't go to the specified record" whenever I enter the same company name in two of the forms for the same chapter. The company name is the primary key. How can I make it so the techs can go from page to page without breaking up my tables? Thanks in advance. Sean Sturts (USMC)
I have a form register with student names and three columns with checkboxes showing whether they were present, absent or late. The form runs an append query that records the data into a historical table, however on submission the checkboxes remain ticked. way to clear the checkboxes once the data has been submitted?
I have a form where users can enter the beginning and ending dates into text boxes. They could also do it for the number of the week (1 to 52) or a single text box for the quarter.
I set up VBA code where, if you click on a button, it will clear out the data from the other two options before a query is run based on the parameters in those text boxes. Here's a sample piece of code.
Code: Private Sub btn_UseDates_Click() Dim lngGreen As Long, lngWhite As Long
I've tried setting those txt boxes to Null and I've tried both "" and " ", but to no avail. The query will work if the three types of ranges (date, week, or quarter) are on OR lines, but not on the same line.
I want to create a form in MS access for General Journal input for an accounting software. Problem is that my client required a form in which he can input as many Debits and/or credits as he likes, for one transaction on one form. For example it may be 2 debits and 4 Credits in one transaction. Its a simple one table entry with fields; TrNo (Transaction Number), Date, Type (Debit or Credit), Amount, and Narration (for details of transaction). Out of these field TrNo, Date & Narration will be same for all debits & credits in one transaction.