A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Add New Record in Datasheet subform



 
 
Thread Tools Display Modes
  #1  
Old September 29th, 2006, 06:13 PM posted to microsoft.public.access.forms
mattc66 via AccessMonster.com
external usenet poster
 
Posts: 210
Default Add New Record in Datasheet subform

Hi All,

I have an event on my main form that when you press enter it moves the cursor
to the first record on the subform. However I want it to place the cursor on
the add new record portion of the subform if there is data already found.

I hope I am saying this correct.

--
Matt Campbell
mattc (at) saunatec [dot] com

Message posted via http://www.accessmonster.com

  #2  
Old September 29th, 2006, 07:57 PM posted to microsoft.public.access.forms
Brendan Reynolds
external usenet poster
 
Posts: 1,241
Default Add New Record in Datasheet subform



Me.sfrOrders.SetFocus
DoCmd.GoToRecord , , acNewRec

Where 'sfrOrders' is the name of the subform control.

--
Brendan Reynolds
Access MVP


"mattc66 via AccessMonster.com" u16013@uwe wrote in message
news:67064c73f17c7@uwe...
Hi All,

I have an event on my main form that when you press enter it moves the
cursor
to the first record on the subform. However I want it to place the cursor
on
the add new record portion of the subform if there is data already found.

I hope I am saying this correct.

--
Matt Campbell
mattc (at) saunatec [dot] com

Message posted via http://www.accessmonster.com



  #3  
Old September 29th, 2006, 08:31 PM posted to microsoft.public.access.forms
mattc66 via AccessMonster.com
external usenet poster
 
Posts: 210
Default Add New Record in Datasheet subform

That works great - Thank you!

Brendan Reynolds wrote:
Me.sfrOrders.SetFocus
DoCmd.GoToRecord , , acNewRec

Where 'sfrOrders' is the name of the subform control.

Hi All,

[quoted text clipped - 5 lines]

I hope I am saying this correct.


--
Matt Campbell
mattc (at) saunatec [dot] com

Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...forms/200609/1

 




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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 06:49 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.