Link to home
Start Free TrialLog in
Avatar of Rob23
Rob23

asked on

Undeclared Identifier - DBNavigator

I am trying to customize the DBNavigator per user level.  I suspect my problem is related to the fact that I am trying to change the options on DBNavigator within the 'Log-in' form and the DBNavigator component itself resides on the 'Manager' form.  

Nevertheless, I cannot find an answer to my problem and I am soooo tired of looking at the 'undeclared identifier' error message.  

The code in the LOG-IN Form is as follows:
//-------------------------------------------------
if ADRMain.edUserLevel.text='Manager' then begin

frmManager.DBNavigator1.VisibleButtons:=[nbFirst,nbPrior,nbNext,nbLast,nbInsert,nbPost];

end;
ASKER CERTIFIED SOLUTION
Avatar of kretzschmar
kretzschmar
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Rob23
Rob23

ASKER

Adding the DBCtrls to the USES clause solved the problem.  I really hate manually adding to the USES clause - it should be automated.