Welcome to Tech Support Forum home to more then 136,000 problems solved. Issues have included: Spyware, Malware, Virus Issues, Windows, Microsoft, Linux, Networking, Security, Hardware, and Gaming Getting your problem solved is as easy as:
1. Registering for a free account
2. Asking your question
3. Receiving an answer

Registered members:
* Get free support
* Communicate privately with other members (PM).
* Removal of this message
* See fewer ads.
* And much more..

 



Want to know how to post a question? click here Having problems with spyware and pop-ups? First Steps
Go Back   Tech Support Forum > Microsoft Support > Microsoft Office support
User Name
Password
Site Map Register Donate Rules Blogs Mark Forums Read


Microsoft Office support MS Office support forum

Reply
 
LinkBack Thread Tools
Old 05-20-2009, 08:28 AM   #1 (permalink)
Registered User
 
James Tembo's Avatar
 
Join Date: May 2009
Location: Kitwe, Zambia
Posts: 53
OS: windows xp sp2,Professional Edition,Version2002


[SOLVED] MSAcess

am creating this Database application and am stuck on these:
1)Auto number
2)Combo Boxes and Tex boxes

Autonumber
i hav got tables in my project eg Demand note table,Purchase requisition,stores Issue voucher tables
on these tables i want my auto number to appear on the forms like this
for the purchase requisition for example pr1000
how do i go about it
in other words how do customise my autonumber bcoz its also my primary key.
combo boxes
how do i syncronise them so they can coordinate
eg adding to values in two textboxes two get the sum in the other one.
James Tembo is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Important Information
Join the #1 Tech Support Forum Today - It's Totally Free!

TechSupportForum.com is a leading support website for your computer needs. We offer free, friendly and personalized computer support. Why pay to have your computer fixed when you can do it for free.

Join TechSupportforum.com Today - Click Here

Old 05-20-2009, 10:33 AM   #2 (permalink)
TSF Enthusiast
 
Dragoen's Avatar
 
Join Date: Apr 2009
Location: Harrisburg, PA
Posts: 1,024
OS: Windows Vista Home Premium (6.0, Build 6001)

My System

Re: MSAcess

Hi James,

The AutoNumber data type is a Long Integer so in order to display it as an Alpha-Numeric you will need to concatenate your form type prefix i.e. PR, DE, SI whenever you display it. The field that you make the autonumber can still be the key field for the table without the alpha prefix.

As for the combo box question, I'm not really sure what you are asking. Could you explain it in more detail?

Hope that helps,
__________________
Dragoen
=========================================================
Just because we can, doesn't mean we should...
Dragoen is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 05-20-2009, 03:32 PM   #3 (permalink)
Design Team Member
 
jamiemac2005's Avatar
 
Join Date: Jul 2007
Location: Coventry, UK
Posts: 1,878
OS: Vista, various linux distros


Re: MSAcess

I get the combo boxes question, basically how can you make a text box display the sum of two combo boxes. And the only way i've done this before is programmatically because it requires using the onchange events of the combo boxes.

Cheers,
Jamey
__________________

Myspace
jamiemac2005 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 05-21-2009, 01:02 AM   #4 (permalink)
Registered User
 
James Tembo's Avatar
 
Join Date: May 2009
Location: Kitwe, Zambia
Posts: 53
OS: windows xp sp2,Professional Edition,Version2002


Smile Re: MSAcess

Hi guys,

so how do i go about concatenating my form type prefix?

For the combo box question i meant for example if u choose an item in a combo box,the other combo boxes will show other details
eg
i choose maybe Item Code 1000,then the second combo box shud desplay the Item description automatically,then the textboxes,how do i go about it programmatically say in VBA code.
hope i v not confused u with my explaination

thanx in advance
cheers

Last edited by James Tembo; 05-21-2009 at 01:26 AM.
James Tembo is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 05-22-2009, 11:45 AM   #5 (permalink)
TSF Enthusiast
 
Dragoen's Avatar
 
Join Date: Apr 2009
Location: Harrisburg, PA
Posts: 1,024
OS: Windows Vista Home Premium (6.0, Build 6001)

My System

Re: MSAcess

Hi James,

to concatenate a form prefix to a serial number (the autonumber value for that type of form) you would just create a text box on your form or report to display the number and in the control source property for the text box enter:

= "PR" & [Purchase_Req_ID]

and that would display PR1234. Essentially the ampersand is the concatenation control in Access. Of course you need to use your desired prefixes and field names for the form ID numbers.
__________________
Dragoen
=========================================================
Just because we can, doesn't mean we should...
Dragoen is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 05-23-2009, 12:44 AM   #6 (permalink)
Registered User
 
James Tembo's Avatar
 
Join Date: May 2009
Location: Kitwe, Zambia
Posts: 53
OS: windows xp sp2,Professional Edition,Version2002


Cool Re: MSAcess

Thanx Dragoen u v been so helpful.its working now!

Last edited by James Tembo; 05-23-2009 at 12:46 AM.
James Tembo is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -7. The time now is 07:47 AM.



Copyright 2001 - 2009, Tech Support Forum
Home Tips Plus | Outdoor Basecamp | Automotive Support Forum

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85