Find Jobs
Hire Freelancers

Access Function to add numbers 1,2,3...n to field values that are duplicates

$10-30 USD

Completed
Posted over 10 years ago

$10-30 USD

Paid on delivery
I need a simple VBA function for MS Access (2010) that I can use in an update query to 1) checks the strings in a given field for duplicates 2) then, for strings that have duplicates, add digits to its end. Example of the input and the expected output: K17B8897 --> K17B8897-0 K17B8897 --> K17B8897-1 H19R1234 --> H19R1234-0 H19R1234 --> H19R1234-1 H19R1235 --> H18R1235 P22K4456 --> H22K4456 K17B8897 --> K17B8897-2 (mind the hyphen!) K17B8897 --> K17B8897-3 (mind the hyphen!) The output strings should be put into a new field, which the function should create itself, ideally to the right of the source field. The function will have three parameters: CheckDuplicates(WhichFieldToCheck, NameOfFieldToCreateForOutput; StartWithNumber) The parameters are - WhichFieldToCheck: Name of the field to check - NameOfFieldtoCreateForOutput: Possibility to set a name for the new column that will be created; if not name is given, "Modified" is used. - StartWithNumber: Set a number to start with, e.g. 1000 --> 1000, 1001, 1002...; if not set, counting starts with 0. For delivery, it is sufficient to send me the VBA code; I will myself create a module to store it where I need it.
Project ID: 5325031

About the project

9 proposals
Remote project
Active 10 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
I have been developing applications in both Access and Excel for 20 years with extensive use of VBA. I have developed several applications for Freelance clients, please see Feedback. I am UK based, a native English speaker, available on Skype and currently on UTC. Basically Prompt for Table Name, Field Name, Output Field Name, Start No with defaults if skipped If initial sort order significant add autonumber so the current order can be restored Sort by Field Name and go first Store value as variable and go next Loop to add sequential numbers and store in output field while value=variable Reset Variable and continue Hope to hear from you, I am very keen to work with employers who use freelancers a lot Regards David
$25 USD in 1 day
4.5 (2 reviews)
3.6
3.6
9 freelancers are bidding on average $31 USD for this job
User Avatar
Hello, How are you? Can you remember me? I did one of your project( perhaps 2 years ago) and that was my first project in vWorker.com. Anyway, i am interested to do this work, waiting for a positive response from you. Thanks
$25 USD in 1 day
5.0 (7 reviews)
3.2
3.2
User Avatar
Hi Chgeiselmann. Your requirement requires a recursive query function that would make a lot of queries and would slow down the system. What if I write you a VBA function in Excel that would do the following with the same parameters. You might convert it to Access query as it suits you. Would this work for you ? Regards. Usman
$30 USD in 1 day
5.0 (3 reviews)
3.2
3.2
User Avatar
Dear Sir, I'm Expert with access, talent with VBA, and i'm interested in doing your project. I have a part of that function just few modification and it will be ready. Kind Regards, NourElDeen
$29 USD in 1 day
5.0 (9 reviews)
3.2
3.2
User Avatar
VB, VBA and Databases expert for over a decade. Master in Information Systems. I have delivered similar projects in the past. Please check https://www.freelancer.gr/projects/Data-Processing-Excel/data-translation-excel.html and feedback at https://www.freelancer.gr/u/paris2785.html I can start right away. For any questions, please let me know. Paris
$25 USD in 1 day
5.0 (1 review)
0.8
0.8
User Avatar
Dear sir, I've read you requirement carefully. With expertise in VBA and much experience working with Acess-SQL, I could be a good fit. Kind regards, LY
$50 USD in 2 days
0.0 (0 reviews)
0.0
0.0
User Avatar
Hello There, I am excited to do this. I can complete this by today. Why you should choose me? 1.) I am proficient in VB, VBA. I can show you projects I have made if you want. 2.) I give timely updates on the progress of the project. 3.) I create documentation on the things that was done for easier modification when needed. I am from the Philippines but is currently in the US studying. Looking forward to work for you! Sincerely, Derrick
$30 USD in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
I am a professional software engineer with 9+ years of experience. I am very talented programmer with the following skills c, c++ , java ,VB, UNIX, Linux,SSH, PHP, Jsp , Js , advanced js like jquery, extjs etc. My skill set and experience are best suitable for your requirement. Please assign this task to me I will make sure your work will be completed to your full satisfaction.
$30 USD in 2 days
0.0 (0 reviews)
0.0
0.0
User Avatar
I am available right now. I am a expert Database Architect. I have done lots of database design and development for desktop and web based applications using .Net, LAMP, Flash Action Script, HTML 5, Java Script, JQuery, AJAX, CSS, XML,DNS, IIS(Admin),Oracle PL-SQL,Classic ASP, MS SQL (DBA,T-SQL),VB 6.0,VBA,COM/DCOM,VB Script,MS Access, Excel, Macros, Flash (AS2, AS3), Crystal Reports (Designer and Server), ColdFusion
$35 USD in 1 day
0.0 (0 reviews)
0.0
0.0

About the client

Flag of GERMANY
Munich, Germany
5.0
34
Payment method verified
Member since Oct 3, 2009

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.