By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,197 Members | 1,173 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,197 IT Pros & Developers. It's quick & easy.

opening in dataentry mode

P: 24
when I open my form it show me the frist recored i entered
i am using Vb6
How it shows new recored entry when i open a form
just like this

id:12 Name:........................

address:........................... Telephone:...........................

Email:..................................
etc
Jan 11 '08 #1
Share this Question
Share on Google+
4 Replies


epots9
Expert 100+
P: 1,351
Moved to the VB Forums where the resident experts can better assist you.

**Moved from Programming Challenges.
Jan 11 '08 #2

Ali Rizwan
100+
P: 927
when I open my form it show me the frist recored i entered
i am using Vb6
How it shows new recored entry when i open a form
just like this

id:12 Name:........................

address:........................... Telephone:...........................

Email:..................................
etc
Wat type of control you are using ADODC or ADODB or someother?

Regards
>> ALI <<
Jan 11 '08 #3

P: 24
Wat type of control you are using ADODC or ADODB or someother?

Regards
>> ALI <<
please tell me about both.
Jan 12 '08 #4

Expert 100+
P: 487
In form active event
Expand|Select|Wrap|Line Numbers
  1. ADODC1.RecordSet.MoveLast
In form active event
Expand|Select|Wrap|Line Numbers
  1. set objADODBrst  = objCon.Execute("Select Max(MYID) from TableName")
  2. objADODBrst.MoveLast
  3. textName.Text =  objADODBrst.Fields(0)
Jan 12 '08 #5

Post your reply

Sign in to post your reply or Sign up for a free account.