944,131 Members | Top Members by Rank

Ad:
Apr 26th, 2007
0

Can anyone help?

Expand Post »
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?
Reputation Points: 10
Solved Threads: 0
Newbie Poster
kalitherenegade is offline Offline
4 posts
since Apr 2007
Apr 27th, 2007
0

Re: Can anyone help?

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 ?
Reputation Points: 20
Solved Threads: 10
Junior Poster
aparnesh is offline Offline
193 posts
since Jul 2005
May 2nd, 2007
0

Re: Can anyone help?

U can only set the primary key with the database not in the code.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
jacsme is offline Offline
4 posts
since May 2007
May 2nd, 2007
0

Re: Can anyone help?

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
Reputation Points: 12
Solved Threads: 8
Junior Poster
davidcairns is offline Offline
114 posts
since Feb 2007
May 29th, 2007
0

Re: Can anyone help?

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.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
kalitherenegade is offline Offline
4 posts
since Apr 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Visual Basic 4 / 5 / 6 Forum Timeline: About Progress Bar
Next Thread in Visual Basic 4 / 5 / 6 Forum Timeline: Passing a value to batch file from VB





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC