A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Getting / Manipulating Data From Another table



 
 
Thread Tools Display Modes
  #1  
Old February 14th, 2006, 03:40 PM posted to microsoft.public.access.gettingstarted
external usenet poster
 
Posts: n/a
Default Getting / Manipulating Data From Another table

I would like to update the current table with a number contained in another
table, then add 1 to
The source table number so that the number will be unique for the next
record added.
The tables do have a relationship established.

Simply –


Location_ID
Source_Number


Location_ID
Destination_Number


I want the value of source number in destination number, (If Destination is
Blank), then add 1 to Source Number. Tables have a relationship by
Location_ID.

I have played with this – but keep getting errors! Help!!

Thanks

Robbie

  #2  
Old February 14th, 2006, 07:36 PM
Bob Miller Bob Miller is offline
Senior Member
 
First recorded activity by OfficeFrustration: May 2005
Posts: 358
Default

If you base a form on your first table and place a sub-form in that form based on the second table (linked by Location_ID) entered info in the two forms will havethe same Location_ID. Entering a Location_ID in the main form will pass it to the sub-form and subsequently second table.
Quote:
Originally Posted by Robbie Gilbert
I would like to update the current table with a number contained in another
table, then add 1 to
The source table number so that the number will be unique for the next
record added.
The tables do have a relationship established.

Simply –


Location_ID
Source_Number


Location_ID
Destination_Number


I want the value of source number in destination number, (If Destination is
Blank), then add 1 to Source Number. Tables have a relationship by
Location_ID.

I have played with this – but keep getting errors! Help!!

Thanks

Robbie
  #3  
Old February 15th, 2006, 01:41 PM posted to microsoft.public.access.gettingstarted
external usenet poster
 
Posts: n/a
Default Getting / Manipulating Data From Another table

I have the tables linked - thats not my problem - i want to get the # from
the 2nd table, put in the first table, then add 1 to the number in the source
table so I have a unique number for the next record added in the source table
- with the same location ID. Note - autonummber will not work - since
numbers have to be by location ID.

"Bob Miller" wrote:


If you base a form on your first table and place a sub-form in that form
based on the second table (linked by Location_ID) entered info in the
two forms will havethe same Location_ID. Entering a Location_ID in the
main form will pass it to the sub-form and subsequently second table.
Robbie Gilbert Wrote:
I would like to update the current table with a number contained in
another
table, then add 1 to
The source table number so that the number will be unique for the next
record added.
The tables do have a relationship established.

Simply –


Location_ID
Source_Number


Location_ID
Destination_Number


I want the value of source number in destination number, (If
Destination is
Blank), then add 1 to Source Number. Tables have a relationship by
Location_ID.

I have played with this – but keep getting errors! Help!!

Thanks

Robbie



--
Bob Miller

  #4  
Old February 16th, 2006, 04:18 PM posted to microsoft.public.access.gettingstarted
external usenet poster
 
Posts: n/a
Default Getting / Manipulating Data From Another table

This is what I am Trying to do -

Private Sub Indictment___BeforeUpdate(Cancel As Integer)
If IsNull(Me![Indictment #]) = True Then
Me![Indictment #] = Counties![indictment # 2]
Counties![indictment # 2] = Counties![indictment # 2] + 1
End If


End Sub


"Robbie Gilbert" wrote:

I have the tables linked - thats not my problem - i want to get the # from
the 2nd table, put in the first table, then add 1 to the number in the source
table so I have a unique number for the next record added in the source table
- with the same location ID. Note - autonummber will not work - since
numbers have to be by location ID.

"Bob Miller" wrote:


If you base a form on your first table and place a sub-form in that form
based on the second table (linked by Location_ID) entered info in the
two forms will havethe same Location_ID. Entering a Location_ID in the
main form will pass it to the sub-form and subsequently second table.
Robbie Gilbert Wrote:
I would like to update the current table with a number contained in
another
table, then add 1 to
The source table number so that the number will be unique for the next
record added.
The tables do have a relationship established.

Simply –


Location_ID
Source_Number


Location_ID
Destination_Number


I want the value of source number in destination number, (If
Destination is
Blank), then add 1 to Source Number. Tables have a relationship by
Location_ID.

I have played with this – but keep getting errors! Help!!

Thanks

Robbie



--
Bob Miller

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PST file has reached maximum size Jeff C General Discussion 2 October 6th, 2005 01:35 PM
Help with relationship plase Rock General Discussion 5 July 4th, 2005 03:54 AM
Help with relationship plase Rock Database Design 5 July 4th, 2005 03:54 AM
Unable to have multiple queries feeding a single report PZ Straube Setting Up & Running Reports 15 June 15th, 2005 08:16 AM
strategy for data entry in multiple tables LAF Using Forms 18 April 25th, 2005 04:04 AM


All times are GMT +1. The time now is 01:24 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.