Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingVisual Basic Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
AT&T devCentral & BlackBerry(r) Webcast Series: BlackBerry and GPS -Build Location Awareness into your BlackBerry Applications, July 10th-1:00PM EST. Register Today!
  #1  
Old May 20th, 2004, 07:56 AM
Nitram Nitram is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: May 2004
Location: Sydney Australia
Posts: 7 Nitram User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Transfering Autofield & fields over several tables

MS Access 2000 db'er
Hi all,
My name is mark and I am a keen MS Access 2000 db'er,

Q 1) I would like to know how to pass a value from one field to another and to different tables with-in the same db. (hopefully as easy as selecting the right macro).

Q2) Is there a way to pass a partial text field characters (say firs five letters of a persons surname) & hook it onto an autonumber Key Field o another field?

What I am thinking is to put together the same cateloging system which is in place for a corresponding mnual filing system at present.

Example may help -

3 fields Date(short),Surname (l/name_fld, 30 chars) & first name (f/name_fld, 15 chars). I want to produce one single field using characters from l/name_fld (first five characters in a text field) & the first letter in field from the f/name_fld (fist char in a text field).
Here is my theory - passing on values of one field to another - You would have to define them as varible(s)

Is there a simple Macro I could turn to or am I down to SQL/VB (I think it is SQL but unsure. I have a little VB & SQL code knowlede and wish to use it.

I take it so long as the fields are able to take the size (Chracters)& the format is the same (Text) then it should be a matter of declaeing the values of the 2 field as variables (A & B) then concatonating them

Reply With Quote
  #2  
Old May 23rd, 2004, 09:59 PM
Doug G Doug G is offline
Grumpier Old Moderator
ASP Free God 11th Plane (10000 - 10499 posts)
 
Join Date: Sep 2003
Posts: 10,143 Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 3 Weeks 4 Days 19 h 31 m 41 sec
Reputation Power: 180
Generally you retrieve a recordset with a select sql statement of some form, and build an sql insert or update statement based on the retreived data.
__________________
======
Doug G
======
I didn't attend the funeral, but I sent a nice letter saying I approved of it. --Mark Twain

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingVisual Basic Programming > Transfering Autofield & fields over several tables


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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 On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway