Transferring A Field From A Form To A Report
Jan 15, 2006
Hi All,
I've attached a picture which shows the problem.
I need to know the expression required to transfer the name of a football team (selected on a form with a combo box) onto a report.
The teams all have ID numbers, and so far its the ID thats getting transferred, not the team name.
Any help is appreciated
Thanks
Colin
View Replies
ADVERTISEMENT
Dec 9, 2006
I have been trying unsuccessfully to transfer about 20 details describing the name, up to 14 different colours, prices etc and one image of beads from the details displayed on a form to a report. I have no problem displaying the details of one bead using a combo box but then I want to send these details to a report. After that I select another bead and then want to send these details to the report.
The report is divided into 12 rectangulars to represent 12 sections of a display box. This tells the shop owners which beads to put in which section as display is important for sales. as there wooden beads, glass beads, plastic beads animal beads, letter beads etc, etc.
I have gone into this details so you will understand what I am trying to do. I would be very grateful for help but I am sure will realise that I am technically inept and please when you try to explain things to me to remember you are dealing with an idiot.
View 1 Replies
View Related
Aug 10, 2006
I suppose thatīs easy, but I only accomplished one by one by selecting a specific record.
Ty
View 4 Replies
View Related
Dec 15, 2011
I have created a database that deals with inventory control. My next step that I have been approaching is to click a command button that opens up a separate from but takes specific information from FORM 1 into the new FORM that I just created.
So if a specific Employee takes out 4 aprons from a total of 50 and there are now 46 left, I would like the submit button to transfer that data over accordingly to Inventory control form in the correct text boxes.
Specific Example: If employee John Doe takes 4 aprons from a total of 50 which now leaves 46 how can I transfer that data into the other form showing specific information like 'Product ID' taken, 'Date' it was taken, 'Product Description', 'Employee' who took it, 'Amount Taken' and, 'total' left. I need the extended information to show up in the text boxes on form 2.
Is there a certain code that does this? Here are screen shots so you can get a visual....
View 2 Replies
View Related
Aug 27, 2004
I have one table of records that I would like to query and display the results.
I have created a form that asks the user for criteria for the query (search).
Then I want to display the results from that query in another form (results).
The problem is that I cannot figure out how to do it.
The results form is using the query as its source. I have tried running the
search and then opening the results form, but I get a message saying that
I tried to lock the table but it was in use.
Is there a way to link these forms so that i can bring up the search form,
perform the search, and have the results brought up in the results form?
Thanks for the help.
View 4 Replies
View Related
Mar 3, 2014
I have one form that is serving as a popup while the parent form remains open... in my code for the popup I'm trying to transfer the value of a textbox to the actual textbox on the parent form... seems easy, but I get this message: "You can't reference a property or method for a control unless the control has the focus" with this code:
Private Sub btnExportData_Click()
[Form]![Worksheet]![txtBookedNotBanked] = Me.txtTotal1.Text
End Sub
... also is there a way to code this so the popup closes when the transfer is made?
View 5 Replies
View Related
Dec 14, 2014
I have a form (frmJob) that has a combobox (cmbCompany). If a new company is not in the table the NotInList code opens another form (frmCompany) and a new company is added into the textbox (txtCoName).
The code below is the code that closes the frmCompany after entering new company.
The first part of the code (Add new company into table) works and adds the new company into table but the second part (Add new company into frmJob) does not, and the new company does not appear in the cmbCompany combobox. Note: frmJob remains open while data is entered into frmCompany.
How can I get the second portion of the code to work?
Code:
Public RemCompany As String
Private Sub cmdCloseCompany_Click()
"FIRST PORTION - Add new company into table
Dim dbCom As Database
Dim recCom As Recordset
Set dbCom = CurrentDb
[Code] .....
View 4 Replies
View Related
Sep 7, 2011
OK so my situation is a simple 1 to many relationship where the main form has the primary key and the secondary input form needs the foreign key to be passed to it to link the 2 tables.
Say for example 1 Site has many sections (Plants). The main menu form can therefore select the Site and filter to another combo box containing the plants that are attached to that site. The user can then either edit the plant or add a new plant record linked to the site.
I have figured out how to edit the plant attached to the site using a macro that opens the form Plants with the site ID passed from the main form however when I want to enter a new Plant I still need the site ID passed to the Plants form however using the following code
DoCmd.OpenForm "frmPlants", acNormal, , , acFormAdd
It simply opens the form as a new record and therefore will not transfer the SiteID
No doubt this is not the hardest thing to do I just can't work out how to do it
I have seen somewhere using code similar to this
stLinkCriteria = "[SiteID]=" & Me![SiteID]
DoCmd.OpenForm stDocName, , , stLinkCriteria
But I can't seem to get it to work.
View 1 Replies
View Related
Feb 10, 2014
I have a mdb file that does not have database or user level security, but it does have a VBA password.I want to transfer (overwrite) a new form to this database from another Access database. The form I'm exporting has VBA code. When I try using docmd.TransferDatabase I get an error. The error is:
"The TransferDatabase action was canceled."The line is:
DoCmd.TransferDatabase acExport, "Microsoft Access", txtCheckInFile, acForm, "SubformLineSummaryContractor", "SubformLineSummaryContractor", False, False
where txtCheckInFile is the location and mdb file name I'm trying to send the export.It might be because the form already exists. So, if I go into the database and delete form, and repeat the export I get the message:
"Microsoft protect this Visual Basic for Applications Project with a password. You must supply the password in the Visual Basic Editor before you can perform this operation."My question is it possible to transfer a form to a MDB that has a passworded VBA? I know the VBA password.If not, perhaps it is possible to remove the VBA password in the database (using VBA), make my export, and then add the password back in?
View 2 Replies
View Related
Apr 24, 2005
on main form i have 6 buttons to take me to different forms. these other forms display different details relating to the same record im looking at on main form.
SO, i hit the record navigation button and it flicks to show record 2's details, then i hit my button and it takes me to my new form BUT starts from record 1, i want it to show the current record in looking at on main form.
i feel ashamed asking this, must be simple thing to do.
thank you for any advice.
View 3 Replies
View Related
Oct 11, 2006
I've been asked to assist a local non-profit transfer an Access DB to a new server. The DB was set up a number of years ago and the designers are no longer available.
The old server is set up as a workgroup server, and the new server is set up as a domain server. (I am completely unfamiliar with how networks are set up...I've never dealt with this end before.)
The designers set up a .mdw file which (I believe) controls permissions etc. After much wrangling, we finally uncovered the admin password. However, even signed in on a workstation as the admin w/ full rights, I still can't copy a functional version of the DB to removable media in order to move it to the new server.
The server does not have MS Access loaded....only the .mdb and .mdw files.
I *think* I have to replace the 'secured' .mdw file with a generic, clean .mdw. Do I need to do this on the server, or the workstations, or both?
What am I doing wrong????
Thanks!
View 1 Replies
View Related
Apr 6, 2008
Hi, I'm running 2 append queries to my existing db to update fields in one table with data from 2 sources - basically plucking some fields from one and some from the other (using a client ID number as the common identifier - the data is fed into the parent table). However, it would appear that some of the data is not transferring into the parent table even though it is visible in the source file (.xls). I know that this seems like a broad request but I'm just wondering if there may be a potential simple error. Any ideas?
Cheers....
View 2 Replies
View Related
Apr 7, 2008
Hi, I'm running 2 append queries to my existing db to update fields in one table with data from 2 sources - basically plucking some fields from one and some from the other (using a client ID number as the common identifier - the data is fed into the parent table). However, it would appear that some of the data is not transferring into the parent table even though it is visible in the source file (.xls). I know that this seems like a broad request but I'm just wondering if there may be a potential simple error. Any ideas?
Cheers....
View 4 Replies
View Related
Dec 16, 2004
I have a report with a calculated field. This calculated field needs to pull the value or total from a field in another report. I think the formula is :
=([AssmntC].Reports!totalreqamnt4)
but I'm getting ?Name as the result.
The report is AssmntB where I need to have the value copied.
The original report is AssmntC and the field is totalreqamnt4 where the value is originally calculated.
totalreqmant4 is also a calculated field which sums fields from a query.
Help with the formula? please?
View 2 Replies
View Related
Jul 18, 2013
Basically i have a form where i get info from multiple tables. On the main form itself i have 3 calculated fields for hours where i add all the hours i choose (from a subform) onto the main form.
My issue is i can create a query to come up with all the fields for my report, but how do i get the calculated fields on my main form on the report? Is there a way to print the calculated fields on the main form to a report? or do i have to do the same calculations on the report itself?
View 4 Replies
View Related
Mar 24, 2014
I have a form which works good enough. In this form, there is a text box that counts and calculates records from a subform. The name of this text box is "text1" ...
Can I fetch this "text1" field in a report ?
View 10 Replies
View Related
Jul 12, 2013
I have a form. On the form I have a button to run a report.The query associated with the report selects all records within a unit (field name (Unit) is used as the selection criteria).Rather than type in the unit name when the report is run, I want to select the unit that is currently shown on the form.
View 4 Replies
View Related
Jul 16, 2007
Does anyone know if it is possible to transfer data from an old MSDos database into an Access 2003 one?
If so any idea how you would go about doing this?
Thanks in advance.
View 14 Replies
View Related
Nov 6, 2004
My program is finally complete, much thanks to everyone here that helped me!
Here's (hopefully) my final issue:
I haven't actually tested this yet to see if it's an actual issue, but I assume it might be. The program i just built needs to be transferred to my client's computer. currently my program consists of three files: PROGRAM.mdb (interface), DATA.mdb (linked tables), PROGRAM.mdw (security file). they are in their own separate folder (C:Program) and play nicely together. i'm concerned because i think that once i zip it up and email it over, when my client unzips it into a folder on his hard drive (named c:program so he doesn't have to re-link them), it might not work because of the .mdw file. if anyone recalls my thread entitled "H E L P ! ! ! !" you see why I'm concerned.
should this just run without a problem, or do i need to have him do all sorts of steps to reassemble the program?
usual lifesavers? i love you guys
Thanks
-Jason
View 4 Replies
View Related
Dec 13, 2004
In one form i have a field called "address" and if the address changes I want to - by clicking a command button or such - automatically transfer this field into a field called "previous address" on another form. How can I do this??
View 3 Replies
View Related
May 2, 2005
Hi all. Hopefully this will be a simple thing...What I have is one main table (RFA Main) and two related tables (S/R Disposition and Suppliers). RFA Main has a two check boxes (ScrapRewrk and SupActs) that I am using to trigger append queries that append the following SQL statement:
Suppliers table
INSERT INTO Suppliers ( LogNum, Originator, ReportDateOp, PartNum, PartNumDesc, ProbDesc, CustRtn, RmaNum )
SELECT [RFA Main].LogNum, [RFA Main].Originator, [RFA Main].ReportDateOp, [RFA Main].PartNum, [RFA Main].PartNumDesc, [RFA Main].ProbDesc, [RFA Main].CustRtn, [RFA Main].RmaNum
FROM [RFA Main]
WHERE ((([RFA Main].SupAct)=True));
S/R Disposition table
SQL the same except for the WHERE statement reads ((([RFA Main}.ScrapRewrk)=True));
First, what kind of statement would I use to trigger the append query when the boxes are checked? Currently, the users are doing these append queries manually by clicking command buttons.
Second, is there an easier way to do it?
Thanks in advance
Camille
View 14 Replies
View Related
Jan 15, 2007
I am using DoCmd.TransferDatabase to transfer 2 tables from one database to another. This works fine, however, the user permissions for those tables do not carry over with the table and I have to go into the database and set them as they were in the original database.
Simply, I want to allow complete access for all users to the tables in the second database.
Does anyone have a solution to this?
Thanks
View 2 Replies
View Related
Nov 5, 2007
Can this be done through a macro ?
If not, what would be a simple way to do this ?
thanks.
View 5 Replies
View Related
Mar 28, 2008
Not sure how easy this one will be but here goes.
I currently have a database which collects details of event effecting our business and am using a simple query that displays events within a defined date range.
I have also set an excel sheet which on the main worksheet appears as a calender format for a particular month which is updated by data in the access query. At the moment I tranfer the query to excel and it appears as a new sheet which I then have to link to the master calender.
Is there any way when exporting to excel to tell access to send the data to a particular sheet and cell range and even more advanced tell it were to put certain dates information? i.e send 1st March info to cells A1 to A4, 2nd to A5 to A8 etc.
Hope someone has some ideas on this one - even being able to send all data a specific cell range would be useful
View 2 Replies
View Related
Sep 6, 2011
Is there a way to transmit data from an MSWord Form to an Access table?
View 6 Replies
View Related
Jul 1, 2006
I found this sample (http://home.earthlink.net/~mgf00/SelectDemo.zip) which allows you to move your selections from one listbox to another with four buttons (<<, <, > and >>) which is just perfect.
Well, almost, actually.
This is already set up to protect against duplicates and that's a good thing. However in my case, my uppers want me to allow duplicates. The code is beyond my ability and my attempts only caused more problems.
The code requires a unique index be generated when the selection is moved between the listbox. Duplicating the index will cause error, and my attempt to circumvent that has either failed totally or is inconsistent (e.g. works if it comes up with a unique value, but will fail if it happens to duplicate a key).
Can anyone show me how I can modify the code to allow for duplicates? The selections then will be looped into a many side table.
View 5 Replies
View Related