Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / New Users / February 2006

Tip: Looking for answers? Try searching our database.

Getting / Manipulating Data From Another table

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Robbie Gilbert - 14 Feb 2006 15:40 GMT
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 - 14 Feb 2006 19:36 GMT
If you base a form on your first table and place a sub-form in that for
based on the second table (linked by Location_ID) entered info in th
two forms will havethe same Location_ID. Entering a Location_ID in th
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 i
> another
[quoted text clipped - 21 lines]
>
> Robbi

--
Bob Miller
Robbie Gilbert - 15 Feb 2006 13:41 GMT
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.

> 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
[quoted text clipped - 26 lines]
> >
> > Robbie
Robbie Gilbert - 16 Feb 2006 16:18 GMT
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

> 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
[quoted text clipped - 32 lines]
> > >
> > > Robbie
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.