![]() |
![]() |
![]() |
|||||
![]() |
![]() |
![]() |
![]() |
![]() |
|||
| 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: * 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 |
|
|||||||
| Microsoft Office support MS Office support forum |
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 (permalink) |
|
Registered User
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. |
|
|
|
| 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 |
|
|
#2 (permalink) |
|
TSF Enthusiast
Join Date: Apr 2009
Location: Harrisburg, PA
Posts: 1,024
OS: Windows Vista Home Premium (6.0, Build 6001)
|
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... |
|
|
|
|
|
#3 (permalink) |
|
Design Team Member
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 |
|
|
|
|
|
#4 (permalink) |
|
Registered User
Join Date: May 2009
Location: Kitwe, Zambia
Posts: 53
OS: windows xp sp2,Professional Edition,Version2002
|
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. |
|
|
|
|
|
#5 (permalink) |
|
TSF Enthusiast
Join Date: Apr 2009
Location: Harrisburg, PA
Posts: 1,024
OS: Windows Vista Home Premium (6.0, Build 6001)
|
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... |
|
|
|
![]() |
| Thread Tools | |
|
|