Moving Data From One Form To Another

Dec 12, 2005

Hi,

I have read a couple of threads about what I am trying to do on other forums and I wanted your views please.

Basically I have to Forms, on form one I have a basic quote generator which will output a specific value in a textbox in form one. If that quote is accepted I would like that value to be feed through to a field in form2 which is linked to a table. I have a button "Accept quote", on form one which opens a new record in the table feeind form 2.

Is this possible??

Regards

View Replies


ADVERTISEMENT

Moving Data Between Subforms & "master Container Form"

Jan 24, 2008

Hi there. I need a way to pass data between forms, and subforms. I have "form1" which simply contains a text box requiring the user to input an ID which I will call "PID". it also has a button which has the following code:

Private Sub Command5_Click()
On Error GoTo Err_Command5_Click

Dim stDocName As String
Dim stLinkCriteria As String
stLinkCriteria = "[PID]=" & Me.PID
stDocName = "TestExam"
DoCmd.OpenForm stDocName, , , stLinkCriteria

Exit_Command5_Click:
Exit Sub

Err_Command5_Click:
MsgBox Err.Description
Resume Exit_Command5_Click

End Sub

On the form testExam, I have a page control with 3 separate tabs. For each tab, I've embedded three separate subforms. All forms involved, including the container form (testExam) are bound to separate tables. All tables have one common field - PID
I'd like the user to only have to input the PID on one form, and have it trickle down to all subforms.

In the FOrm_Current sub of the testExam form, I have the following code:

Private Sub Form_Current()
[PID] = Forms!frmForm1.PID
End Sub

Using this code, I am able to pass the data from Form1 to testExam, have the PID on testExam filled in and on tab 2. But tab 1 will not populate automatically. I have no idea why. I don't know where to start troubleshooting this.
Please help.

Is this even a good way to pass data between subforms?

View 10 Replies View Related

Moving Data

Mar 5, 2008

You people are great - lots of help. What I need to know now is --- I input information regarding jobs that we do at my company. I have a customer table, employee table vendor table and invoice table - these are connected thru relationships but the job is eventurally closed. What expression or command do I use to move it to a closed table. I have to keep this information somewhere. Thanks!

View 1 Replies View Related

Moving/ Archiving Data

Jul 24, 2006

Hi all,

currently on my db it stores data on various projects, and these projects are sorted by a status of on hold, on going, or finished. What im trying do is move only the projects that are finished but still keeping a record of them so we can view them in the future.

i was thinking maybe i could move the finished projects into another db? but not sure how to do, or is there a better way to achieve this?

thank you

View 2 Replies View Related

Moving Data In Access

Jan 28, 2007

Hi
:) I am creating a program in VB.NET with an access 2003 database. This program will be in 2 physical locations. This is a program that sells tickets. At the end of the day I need to be able to get that days sales data off the remote location and update the main location with that information. This will be sales totals only. The user will plug in a thumb drive to move the data from one machine to the other. Due to the physical layout and other considerations this is the best option. The only action I want the user to have to do is to place the thumb drive in the USB port and hit the “down load” button. Then on the main location the user should be able to just plug in the thumb drive and hit up load. The database needs to be updated with the data from the remote location. What is the best way to do this?
Thanks in advance.

View 1 Replies View Related

Data Moving On Export

Oct 11, 2005

I am exporting a table to a text file using a specification. Comma Delimited, no text qualifier. Now, I don't know if this makes a difference but the file is decent size (over 1000 records). The data within each record is exporting fine (about 78 fields) however, I have what is a major problem.

About a third of the way in the exported file are 70 records that have exported 60-70 records too early. Those 70 records are in order themselves but they just somehow jumped the gun(if that makes sense). This is a big problem because this file is going to be uploaded to the mainframe.

Just as an FYI the only VBA I have in my whole database is one pop-up message box. Everything else is run with macros. This one table does not have any primary keys since this is the table the information is oringally imported into and is moved from here. What I want is the information to look like it is in the table.

If anyone has any ideas I would really appreciate it. I'm going nuts and so is my mainframe programmer trying to figure out how we're going to get around this.

Thank you!

View 2 Replies View Related

Moving Data From One Table To Another

Aug 21, 2006

Hi there,

I have a simple database with a form that displays the contents of a table called Products. I want to be able to delete items from Products but these should be move into ProductsArchive table and I will then create a seperate form to view Products that have now been removed but were once currently live if that makes sense?

I would like to write some code that on the form when the user clicks on the delete button it will just move the data relating to that record into the ProductsArchive table.

Can anyone help?

View 3 Replies View Related

Moving The Data Base Window

Feb 5, 2006

When pressing F11 to access the data base window, somehow I have docked it in an awkward position on the screen where as the top of the box containing the minimise, maximise and close button are not visible, how can I drag the data base window to the position I want i.e in the centre of the screen? :confused:

View 4 Replies View Related

Forms :: Data Moving Around On Subform

May 8, 2015

I have a form on my database called frmFloorRun in which a user inputs a line number on the main form, and then in the subform they enter what will be running on that line for that given day.

Everything seems to work beautifully except that when a user clicks on a line other than line 1 and clicks the refresh button, the first item scheduled to run on line 1 will move to whatever line the user is currently on.

To replicate this issue: simply open the database (i have slimmed it down so that only the floor run portion is included).

Open the form [frmFloorRun] observe the first line item on line 1 (that should be what the form opens to by default).

Now click on any other line by selecting it from the dropdown (yes I realize it is a combo box, but even when I remove that combo box and enter a line number manually, the issue persists).

After selecting another line, click refresh and that first line item from line 1 will move to whatever line you have selected. This is a huge issue for our company.

Also, I have included the report that is based on this form. It simply proves that the line item does not just move on the form - it moves in the report too.

View 2 Replies View Related

Moving Data From Excel To Access?

Jul 30, 2015

The data I have in excel is basically everything about the "site". In access this cant be stored in one table.

What's the best way to move data from excel into access across multiple tables? I was hoping I could create a query and assign the columns from excel to the columns in the query. but I cant see an option for this.

View 2 Replies View Related

Moving Data From Excel To Access

Jan 29, 2013

I am treying to move data from an Excel worksheet to Access. My code is below. My program does not like my "Set rs = OpenTable("GL")" line

Option Explicit

Public Const gconConnection = "Provider=Microsoft.ACE.OLEDB.12.0; Data Source='C:usersc156281my documentsPLANPlan New.accdb'"
Public rsData As DAO.Recordset
Sub PostData()
'TryPostAgain:
'On Error GoTo BadPost

[Code]...

View 6 Replies View Related

Moving Column Data To Rows

Dec 21, 2011

I have an Excel sheet with data organized like:

1 A
1 B
2 A
2 B
2 C

I want to reduce the first column to unique records, and have the second column listed on the same row. (I'm assuming I'll need Access to do it.) Is there a way to produce a table like this?

1 A B
2 A B C

The final result would need to be something I could put back into Excel.

View 3 Replies View Related

Moving Multiple Columns Data Into One Column?

Feb 7, 2008

How can I move multiple columns data into a single column so that:

Name Age Location
Mike 25 Essex
Jack 32 Surrey
Bob 36 Newcastle

appear in a single column with data appended column-wise as

Mike
Jack
Bob
25
32
36
Essex
Surrey
Newcastle

Any help would be much appreciated. I'm a novice at VBA, so if anybody could do the code, it would be great!

View 3 Replies View Related

Moving Multiple Columns Data Into One Column?

Feb 7, 2008

How can I move multiple columns data into a single column so that:

Name Age Location
Mike 25 Essex
Jack 32 Surrey
Bob 36 Newcastle

appear in a single column with data appended column-wise as

Mike
Jack
Bob
25
32
36
Essex
Surrey
Newcastle

Any help would be much appreciated. I'm a novice at VBA, so if anybody could help me with the code, it would be great!

View 14 Replies View Related

Tables :: Moving Data From One Table To The Other Via Yes / No Boxes?

Jul 5, 2013

I have two tables;

Parts
Sold Parts

Now what I am trying to get to happen is using a YES/NO box, Say i have a "part" in the parts table when i click the YES/NO box, to have the tick to say it has been sold, I want that line to move to the Sold Parts table. is this even possible?

View 5 Replies View Related

General :: Moving Data From Excel To Access

Sep 13, 2012

How can I import data from excel to access, i have a huge file more then 5000 entries in there....

View 1 Replies View Related

Moving Data With Cut Paste Function In SQL Query

Jul 25, 2012

Moving data from one table to another table. Mainly we are using "Insert into table2 select* from table with where condition".

But in this case data moved one table to another as copy paste.

Is it any way to go data as cut paste...

View 1 Replies View Related

Converting PDF Into Excel Spreadsheet - Moving Data

Nov 23, 2013

I have this file that I created from work,(.pdf). I converted it into an excel spreadsheet. I am now trying to move the data around and am having trouble, I have tried to use ACCESS to do this but I cannot figure it out.

Is there any way I can flip the rows with the columns?

View 3 Replies View Related

Moving From 1 Data Base Entry To Another By Double Clicking

Sep 19, 2007

I am new to access and all of this and trying to create a database to record livestock (budgerigars) I have put in the reletive informnation for 2 generations but would like to beable to click on a record in forms view and for the grandparents to be automatically inserted. Something like a family tree.

Also I would like to be able to double click on a entry which shows as a parent in a form view, and for the database to go directly to that entry and bring it up onto the form.

I hope someone can help and that I'm making so sense

(anyone know a good book that would help me understand all of this)

Thanks

Norma

View 1 Replies View Related

Moving Database To New Computer (Win XP Pro / Access 2003) - Data Has Become Read Only

Feb 20, 2013

Moving to new computer, both under Win XP pro, Access 2003. New computer is MacBook Air running Parallels. Transferred Access database via an external hard drive. Now the data shows up as Read Only. Is there a procedure to run down the cause and make the data accessible?

View 3 Replies View Related

Form Validation Before Moving To Another Tab

Dec 27, 2007

All -

I am experiencing an issue with the following code. The code works fine, I'm just not sure where to place it on a subform in a Tab Control to ensure that all validation is done before the user can move to another tab.

Any ideas what event I need place this on? I tried the BeforeUpdate and it popped up first error box, but then proceeded onto the next tab that I clicked.

Thanks!


'Enforce required fields on a form
Dim ctl As Control
For Each ctl In Me

If ctl.Tag = "Required" Then
If IsNull(ctl) Or ctl = "" Then

MsgBox "You must complete all required fields to continue", vbCritical, "Required Field"
ctl.SetFocus
Exit Sub
End If
End If
Next
'All fields are validated, now set ctl to essentially being unbound

Set ctl = Nothing

View 2 Replies View Related

Help Moving Records From A Form

May 7, 2005

I have an Employee Database with a form that displays the employee record. When an employee leaves they want to be able to click on a button on the form and have the record moved to a different table. My thought was to do a append query to move the record from my active employee table to the termed employee table, but that would still leave a copy in my active table. I'm not real up on coding that much so Im not sure if there's a way to have code move a record from 1 table to another table or copy the data from 1 table to another table and delete it from the first table. Any help would be greatly appreciated.

View 12 Replies View Related

Moving To Field In Sub Form

Jul 28, 2006

I have these sub forms which is in datasheet and single form view in the main form.

I can't move from the field in the main form to the one in the subform with the tab or enter key. It just keeps running to the next record.:confused:

View 2 Replies View Related

When Moving From Records On A Form

Sep 10, 2004

I was wondering if anyone knew how to check when the user has clicked to move on to the the next record on a form?

Ed

View 1 Replies View Related

Moving A Form To A New Record On Open

Apr 21, 2006

Ok i'm opening a form with the intention of grabbing the last reference number and adding one then moving to a new record.

However the form opens on the first record. Here is my code.

Private Sub Form_Open(Cancel As Integer)
Dim lastbookref As String
Dim expans As String
Dim Newbookref As Integer
Form_frmbooking.RecordSource = "SELECT tblbooking.Bookingno, tblbooking.Clientno, tblbooking.Sampledate, tblbooking.Sampleref, tblbooking.[Sample place], tblbooking.Recieveddate, tblbooking.Recievedby FROM tblbooking WHERE (((tblbooking.Bookingno) Like """ & Left(Form_frmClient.Clientname, 3) & "*""));"

If Form_frmbooking.Recordset.BOF = True Then
Form_frmbooking.Bookingno = Left(Form_frmClient.Clientname, 3) & "/00/0001"
Else
Form_frmbooking.Recordset.MoveLast
lastbookref = Form_frmbooking.Bookingno
DoCmd.GoToRecord , , acNewRec

Newbookref = Val(Right(lastbookref, 4)) + 1
Select Case Newbookref
Case Is < 10
expans = "000" & Newbookref
Case Is < 100
expans = "00" & Newbookref
Case Is < 1000
expans = "0" & Newbookref
End Select
Form_frmbooking.Bookingno = Left(Form_frmClient.Clientname, 3) & "/00/" & expans
End If
End Sub

Anyone have any idea why this is not moving the new record.

Even more bizarrely the new booking reference is inserted into the new record....its just that the form opens up on the first record.

View 1 Replies View Related

Moving Form To Top Right Of Access Window

Feb 15, 2006

I have a form which I want to move OnLoad to the top-right of the Access window. Something like this:

Private Sub Form_Load()
Me.Move Right:=150, Top:=150
End Sub

But there isn't a Right:=, only Left:=. So maybe I could find out the width of the Access window? Is this possible?


Thanks for any advice.

View 6 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved