What code should i use?

As more years pass, the less I remember of VB6 and database work. You may have to outsource this one if research fails you. Try Upwork.com.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.