Re: Prob in Userform_Edit_PreventDuplicateEntry_DependableMandatoryField_DTPicker.

Atiqul Haque

New Member
Joined
Dec 13, 2020
Messages
45
Office Version
  1. 2016
Platform
  1. Windows
Dear All,

Re: Prob in Userform_Edit_PreventDuplicateEntry_DependableMandatoryField_DTPicker.

My database works nice but i faced the following issue:

1) Mandatory Fields:
In userform "D" & "E" are not a mandatory field, but if i put a value like "Salary" in "G" then "D" will be a mandatory field, and if put "Bonus" in "G" then "E" will be a mandatory field.

2) DTPicker:
In userform DTPicker shows "29-Jan-21" as default, but i want it to show date as "TODAY".

3) Prevent Duplicate Entries:
I need to prevent duplicate entries on "C", "D" & "E".

4) Edit Function:
If duplicate entries are not allowed then what will be the code of "EDIT" function.

Pics of database & userform sending herewith for your reference. Also sending the dropbox link of the database.

Pls anybody help me out of these problems.

Thanks in advance.

Database dropbox link.....

Database.JPGUserForm.JPG
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.

Forum statistics

Threads
1,214,968
Messages
6,122,509
Members
449,089
Latest member
RandomExceller01

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top