Connecting Tech Pros Worldwide Help | Site Map

opening in dataentry mode

Newbie
 
Join Date: Jan 2008
Location: Pakistan
Posts: 24
#1: Jan 11 '08
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
epots9's Avatar
Moderator
 
Join Date: May 2007
Location: Canada
Posts: 1,313
#2: Jan 11 '08

re: opening in dataentry mode


Moved to the VB Forums where the resident experts can better assist you.

**Moved from Programming Challenges.
Ali Rizwan's Avatar
Banned
 
Join Date: Aug 2007
Location: Lahore Pakistan
Posts: 929
#3: Jan 11 '08

re: opening in dataentry mode


Quote:

Originally Posted by arali

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 <<
Newbie
 
Join Date: Jan 2008
Location: Pakistan
Posts: 24
#4: Jan 12 '08

re: opening in dataentry mode


Quote:

Originally Posted by Ali Rizwan

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

Regards
>> ALI <<

please tell me about both.
CyberSoftHari's Avatar
Expert
 
Join Date: Sep 2007
Location: Banglore, India.
Posts: 450
#5: Jan 12 '08

re: opening in dataentry mode


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)
Reply