Microsoft Access Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsDatabaseMicrosoft Access Help

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:
  #1  
Old January 30th, 2004, 10:12 AM
danbwest danbwest is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 10 danbwest User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 16 m 47 sec
Reputation Power: 0
Problem!

Hi, I am currently making a database containing a tbl product-within this table is a number of fields-but there are two fields that have something in common. Product ID and Barcode

I want to be able to relate this two fields together-so that each time i enter a new product in the form that i have created it adds the barcode number.

The relation of the two fields are as follows:
Product No Barcode
1 0001
2 0002
3 0003
4 0004 etc

So as soon i click to add a new product on the form- and it automatically creates a product ID i want it to do the same with Barcode. Is there any way of doing this?

danbwest

Reply With Quote
  #2  
Old February 1st, 2004, 09:01 AM
TBÁrpi's Avatar
TBÁrpi TBÁrpi is offline
Lazy User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Location: Hungary, Europe
Posts: 337 TBÁrpi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 13 h 5 m 5 sec
Reputation Power: 5
Send a message via MSN to TBÁrpi Send a message via Yahoo to TBÁrpi Send a message via Skype to TBÁrpi
Set the Format property of your BarCode field in the form to
0000

and use this code:
BarCode = ProductNo

In this case you'll have four-length string barcodes that are coposed by your Product No left padded with the appropriate number of zeros.
__________________
BRegs,
TBÁrpi
"I can only show you the door. You're the one who has to walk through it."

Reply With Quote
  #3  
Old February 1st, 2004, 09:54 AM
danbwest danbwest is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 10 danbwest User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 16 m 47 sec
Reputation Power: 0
problem not solved

i have done what u have sed by formatting the property of the barcode field and have inserted the code in the property box too...but what i want to actually do isnt happening?!

have i done something wrong?
Danbwest

Reply With Quote
  #4  
Old February 1st, 2004, 09:54 AM
danbwest danbwest is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 10 danbwest User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 16 m 47 sec
Reputation Power: 0
problem not solved

i have done what u have sed by formatting the property of the barcode field and have inserted the code in the property box too...but what i want to actually do isnt happening?!

have i done something wrong?
Danbwest

Reply With Quote
  #5  
Old February 1st, 2004, 09:55 AM
danbwest danbwest is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 10 danbwest User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 16 m 47 sec
Reputation Power: 0
problem not solved

i have done what u have sed by formatting the property of the barcode field and have inserted the code in the property box too...but what i want to actually do isnt happening?!

have i done something wrong?
Danbwest

Reply With Quote
  #6  
Old February 3rd, 2004, 02:23 PM
TBÁrpi's Avatar
TBÁrpi TBÁrpi is offline
Lazy User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Location: Hungary, Europe
Posts: 337 TBÁrpi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 13 h 5 m 5 sec
Reputation Power: 5
Send a message via MSN to TBÁrpi Send a message via Yahoo to TBÁrpi Send a message via Skype to TBÁrpi
You need to use the code in VBA in the AfterInsert or BeforeInsert event.

Reply With Quote
Reply

Viewing: ASP Free ForumsDatabaseMicrosoft Access Help > Problem!


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 6 hosted by Hostway