473,416 Members | 1,520 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,416 software developers and data experts.

Novice looking for help - Automatically generate a purchase order number

Novice looking for some direction!!

I am trying to have a text box autopopulate with a number added to it at the end and I am having a difficult time doing this.

Example:
(1) I have a combo box [cbojobid]

I would like to have a purchase order number automatically generated from that number to another text box

What I would like to have have happen is when I click on the combo box [cbojobid] and choose the selection from the combo box to have the new text box automatically generate a purchase number with the JobID plus (-08)

It would look like this:
4567-08

First four letters being the JobId and the (-08) being the last two numbers in the year.

Can anyone help please.
Thanks for your time.
Gary
Nov 14 '08 #1
6 2634
missinglinq
3,532 Expert 2GB
This should do the job:

Expand|Select|Wrap|Line Numbers
  1. Private Sub cboJobID_AfterUpdate()
  2.  Me.AnotherTextBox = Me.cboJobID & "-" & Format(Date, "yy")
  3. End Sub
Linq ;0)>
Nov 14 '08 #2
Worked like a charm.
Thanks for your help!

Gary
Nov 14 '08 #3
missinglinq
3,532 Expert 2GB
Glad we could help!

Linq ;0)>
Nov 14 '08 #4
Second Question -
The suggestion you gave me work great.
What would be helpful also is to have the job name automatically populate onto the form also into another text box [txtjobname]

What I have is when I click on the combobox [cbojobid] I have four headings to view simply for reference purposes to select the correct project.

First - JobId
Second - Completename
Third - Date
Fourth - Jobamount

I have worked for hours on this with no success.
Any suggestions would be appreciated.
Thanks
Gary
Nov 15 '08 #5
missinglinq
3,532 Expert 2GB
Is the second field, CompleteName, the value you want to populate txtJobName? If so:

Expand|Select|Wrap|Line Numbers
  1. Private Sub cboJobID_AfterUpdate()
  2.   Me.AnotherTextBox = Me.cboJobID & "-" & Format(Date, "yy")
  3.   Me.txtJobName = Me.cboJobID.Column(1)
  4. End Sub
once again with actual textbox name in place of

AnotherTextBox.

If CompleteName is not the same as Job Name, where is the data for Job Name stored?

Linq ;0)>
Nov 15 '08 #6
unbelivable - I tried this one so many different ways and completly blew off the (column1) - now that i see it - it makes so much sense.
thanks for your help again.
Gary
Nov 16 '08 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: laurie | last post by:
Hi all, I'm trying to help out a friend who has inherited a client with a PHP shopping cart application. Neither of us know PHP, but I've been muddling my way through, trying to get these old...
8
by: baustin75 | last post by:
Posted: Mon Oct 03, 2005 1:41 pm Post subject: cannot mail() in ie only when debugging in php designer 2005 -------------------------------------------------------------------------------- ...
6
by: John Baker | last post by:
Hi: As those who have looked at this newsgroup recently will realize, I am a neophyte with Access, although I have experienced with Approach (the Lotus product). There are things I could easily...
15
by: Colin | last post by:
I have a query that calculates the selling price of products on customer orders. Selling prices are calculated based on the average cost of the items when purchased. As I make new purchases, the...
4
by: trond | last post by:
Hello all, Before I start I'd like to point out that I am a complete novice when it comes to asp.net - My background is in network and operating systems, and although I have been doing a bit of...
12
by: Jim Anderson | last post by:
This is my first attempt at XML documentation. I'm trying to get started with docbook so I can put a set of documentation into docbook tags. I'm using 'XML In A Nutshell" and "DocBook The...
3
by: Wired Hosting News | last post by:
Lets say I have 10 products in 10 different stores and every week I get a report from each store telling me how many items they have left for each of the 10 products. So each week I enter in 100...
1
by: bb72 | last post by:
Hello, I have a project using JSP and JSTL. I have to forward one JSP to another. The problem that I am having is understanding what JSTL tags to loop through and get the information from the java...
4
by: Constantine AI | last post by:
I am working on an automatic Purchase Order Generator where with a click of a button will automatically assign a PONo to certain stock items (based on the SuppNo). The coding i have at present is as...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.