Can anyone help?

Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Apr 2007
Posts: 4
Reputation: kalitherenegade is an unknown quantity at this point 
Solved Threads: 0
kalitherenegade kalitherenegade is offline Offline
Newbie Poster

Can anyone help?

 
0
  #1
Apr 26th, 2007
Greetings!
i need help. Does anyone know how to set record or primary key properties to a text box on a form in VB6 through the code?
Reply With Quote Quick reply to this message  
Join Date: Jul 2005
Posts: 188
Reputation: aparnesh is an unknown quantity at this point 
Solved Threads: 10
aparnesh's Avatar
aparnesh aparnesh is offline Offline
Junior Poster

Re: Can anyone help?

 
0
  #2
Apr 27th, 2007
I am sorry, but I don't really understand your statement. What is a 'record' property ? And 'Primary key' property applies to a field in a database table, not to a text box. Do you mean the field whose data is being shown in the text box ?
Reply With Quote Quick reply to this message  
Join Date: May 2007
Posts: 4
Reputation: jacsme is an unknown quantity at this point 
Solved Threads: 0
jacsme jacsme is offline Offline
Newbie Poster

Re: Can anyone help?

 
0
  #3
May 2nd, 2007
U can only set the primary key with the database not in the code.
Reply With Quote Quick reply to this message  
Join Date: Feb 2007
Posts: 114
Reputation: davidcairns is an unknown quantity at this point 
Solved Threads: 8
davidcairns davidcairns is offline Offline
Junior Poster

Re: Can anyone help?

 
0
  #4
May 2nd, 2007
I'm going to assume you are an Access programmer. I'm afraid VB won't do this stuff for you, you have to do it yourself. Having said that it is far more powerful and robust than Access and if you get it right will work much better.

Cheers

D
Reply With Quote Quick reply to this message  
Join Date: Apr 2007
Posts: 4
Reputation: kalitherenegade is an unknown quantity at this point 
Solved Threads: 0
kalitherenegade kalitherenegade is offline Offline
Newbie Poster

Re: Can anyone help?

 
0
  #5
May 29th, 2007
Hey thanks for the response but i managed to solve the record key problem. i had to set in in access and then put an error handler in VB such that when two records onflict the system should prompt you to enter a new ID. Hope you know what i mean but anyway thanks and take care.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the Visual Basic 4 / 5 / 6 Forum
Thread Tools Search this Thread



Tag cloud for Visual Basic 4 / 5 / 6
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC