Set(varLoggedInUser,User());
Set(CurrentUser,User().Email);
Set(CurrentRole,LookUp('[dbo].[InquirersDetail_t]',Email=CurrentUser,Role));
I hope Role is also a column in your table.
Try the above. If it doesn't work, take a screenshot of the form for any errors
------------
If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.