Delphi Pages Forums  

Go Back   Delphi Pages Forums > Delphi Forum > DB-Aware

Lost Password?

Reply
 
Thread Tools Display Modes
  #1  
Old 11-24-2003, 06:26 AM
DelphiCode DelphiCode is offline
Senior Member
 
Join Date: Apr 2003
Posts: 383
Default Show first record on DBLookUpComboBox

The DBLookUpComBoBox is blank when I run Delphi. How can I make it to show the first record before I choose a value from this dropdown list.

Thanks.

Beginner
Reply With Quote
  #2  
Old 11-24-2003, 10:41 AM
rdaniel2000 rdaniel2000 is offline
Senior Member
 
Join Date: Jul 2001
Posts: 105
Default RE: Show first record on DBLookUpComboBox

MyDBLookup.KeyValue:= MyTable.FieldByName(MYIDKEY).AsInteger;
Reply With Quote
  #3  
Old 11-24-2003, 11:11 AM
DelphiCode DelphiCode is offline
Senior Member
 
Join Date: Apr 2003
Posts: 383
Default RE: Show first record on DBLookUpComboBox

MyTable.FieldByName(MYIDKEY).AsInteger does not compile. I can only get MyTable.FieldByName(MYIDKEY).Value not AsString and it did not show the first record.

Thanks,

Peggy


Beginner
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:06 AM.


Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2019, vBulletin Solutions, Inc.