Auto increment of numbers depending on prefix
is there any way of having an auto number based on a prefix code selected in a drop down menu on the same form?
Basically what I want to do is separate all my materials into various categories and have an auto number for each of those catagories.
eg CLD001; CLD002; ELE001; INS001; CLD003 etc
Best Regards and Thanks again
Keys to the Problem Auto increment of numbers depending on prefix
Presumably you have a talbe named table1, and have the following data in it.
Then in the AfterUpdate event of drop down menu, add the following code:
Private Sub F2Word_AfterUpdate()
If NewRecord Then
Me.MaxNum = Nz(DMax("[f1ID]", "Table1", "[f2Word]=""" & [Forms]![Form1]![F2Word] & """"), 0)
Me.f1ID = Me.MaxNum + 1
If Me.F2Word = Me.F2Word.OldValue Then
Please refer to the following similar post and download "DemoAutoIncrementA2000.mdb" attachment, you can look at it.
Don't Download Malware
Where are you getting the download?
There are malicious people who download valid copies of a popular download, modify the file with malicious software, and then upload the file with the same name. Make sure you are downloading from the developer's web page or a reputable company.
Cancel or deny any automatic download
Some sites may automatically try start a download or give the appearance that something needs to be installed or updated before the site or video can be seen. Never accept or install anything from any site unless you know what is downloading.
Avoid advertisements on download pages
To help make money and pay for the bandwidth costs of supplying free the software, the final download page may have ads. Watch out for anything that looks like advertisements on the download page. Many advertisers try to trick viewers into clicking an ad with phrases like "Download Now", "Start Download", or "Continue" and that ad may open a separate download.
Recommended Method to Fix the Problem: Auto increment of numbers depending on prefix:
How to Fix Auto increment of numbers depending on prefix with SmartPCFixer?
1. You can Download SmartPCFixer here. Install it on your system. When you open SmartPCFixer, it will perform a scan.
2. After the scan is finished, you can see the errors and problems need to be fixed. Click Fix All.
3. When the Fixing part is done, your computer has been speeded up and the errors have been removed
Related: AMD Radeon HD 7800M Win8 not working [Anwsered],I can access the internet, get on facebook and get to hotmail, but I can't play games on facebook and I can't open or respond to my e-mails,I keep getting this Media Player error when I log on my computer. [Anwsered],[Anwsered] System Hanging on shutdown and restart,Unable to get the Vlookup property of the WorksheetFunction class,Solution to Error: Error: "0x81000032 make sure the C: drive is online and set to NTFS" when trying to backup to external hard drive.
,Troubleshoot:External Hard Drive not listed in Windows 7 backup wizard Error
,I'm always being signed off so annoying Tech Support
,Solution to Problem: Impossible to use Internet Explorer! I keep getting the same error message every time i try to use IE.
,Solution to Problem: Referencing data in another file
,Troubleshoot:Error: "0x81000032 make sure the C: drive is online and set to NTFS" when trying to backup to external hard drive. Error,External Hard Drive not listed in Windows 7 backup wizard Tech Support,Tech Support: I'm always being signed off so annoying,Solution to Problem: Impossible to use Internet Explorer! I keep getting the same error message every time i try to use IE.,Referencing data in Access using Excel [Anwsered],Need Best Way To Present Data [Anwsered],Same question but for windows 7 home edition,sometimes fullscreen won't activate [Solved],Solution to Error: We bought a new computer with windows 7 and it is constantly freezing. How do we fix this?,Solution to Error: Windows 8 update crash (2013-07-22)
Read More: How to Fix - backup & recovery window, when clicking on turn on schedule or anything on that page.?,How Can I Fix - Are ATI Radeon graphics drivers digitally signed??,Troubleshooter of Error: Backup Software in Win7\/64: is Norton good?,Fast Solution to Problem: Ashampoo Burning Studio 11 freezes when try to create slideshow using pictures.,Fast Solution to Problem: Automatic system restore points not being created,application not found error,any problems in a team where one has Windows XP and the other has Windows 7?,Application/Object-Defined Error,An Excel formula question where hours are totalled and cumulating,Anyone know the hardware email?