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  

Question abt POP form to current record details...



 
 
Thread Tools Display Modes
  #1  
Old December 13th, 2005, 02:22 AM posted to microsoft.public.access.forms
external usenet poster
 
Posts: n/a
Default Question abt POP form to current record details...

good day all,

I have a frmchecking acct that has ID, DATE, Description, Debit, CRedit,
and the pop up form has Acct Type, Reference, transaction notes.

I created a button to open the form to the current record based on ID, and
for a test I put the field ID visible on the pop up form (frmdetails), but
when the form opens from the current record, the ID Still shows (autonumber)
and doesn't "go to" the current record details?

Here is my code:

Private Sub Command28_Click()
On Error GoTo Err_Command28_Click

Dim stDocName As String
Dim stLinkCriteria As String

stDocName = "frmcheckingAdd/Edit"

stLinkCriteria = "[ID]=" & Me![ID]
DoCmd.OpenForm stDocName, , , stLinkCriteria

Exit_Command28_Click:
Exit Sub

Err_Command28_Click:
MsgBox Err.Description
Resume Exit_Command28_Click

End Sub
Any suggestions?

Thanks,

Brook
  #2  
Old December 13th, 2005, 05:29 AM posted to microsoft.public.access.forms
external usenet poster
 
Posts: n/a
Default Question abt POP form to current record details...

As long as your ID is numeric that should work fine as long
as the form calling it is on a record itself. Your pop-up
form isn't set to be DataEntry by chance, is it? The
(Autonumber) display usually indicates that it is a new
record waiting to be filled in.

--
Gary Miller
Sisters, OR



"Brook" wrote in message
...
good day all,

I have a frmchecking acct that has ID, DATE, Description,
Debit, CRedit,
and the pop up form has Acct Type, Reference, transaction
notes.

I created a button to open the form to the current record
based on ID, and
for a test I put the field ID visible on the pop up form
(frmdetails), but
when the form opens from the current record, the ID Still
shows (autonumber)
and doesn't "go to" the current record details?

Here is my code:

Private Sub Command28_Click()
On Error GoTo Err_Command28_Click

Dim stDocName As String
Dim stLinkCriteria As String

stDocName = "frmcheckingAdd/Edit"

stLinkCriteria = "[ID]=" & Me![ID]
DoCmd.OpenForm stDocName, , , stLinkCriteria

Exit_Command28_Click:
Exit Sub

Err_Command28_Click:
MsgBox Err.Description
Resume Exit_Command28_Click

End Sub
Any suggestions?

Thanks,

Brook



  #3  
Old December 13th, 2005, 06:27 AM posted to microsoft.public.access.forms
external usenet poster
 
Posts: n/a
Default Question abt POP form to current record details...

Hey Brook,

In your Do.Cmd statement try adding:

DoCmd.OpenForm stDocName, , , stLinkCriteria,acFormEdit

and see what happens.

HTH,
Shane

Brook wrote:
good day all,

I have a frmchecking acct that has ID, DATE, Description, Debit, CRedit,
and the pop up form has Acct Type, Reference, transaction notes.

I created a button to open the form to the current record based on ID, and
for a test I put the field ID visible on the pop up form (frmdetails), but
when the form opens from the current record, the ID Still shows (autonumber)
and doesn't "go to" the current record details?

Here is my code:

Private Sub Command28_Click()
On Error GoTo Err_Command28_Click

Dim stDocName As String
Dim stLinkCriteria As String

stDocName = "frmcheckingAdd/Edit"

stLinkCriteria = "[ID]=" & Me![ID]
DoCmd.OpenForm stDocName, , , stLinkCriteria

Exit_Command28_Click:
Exit Sub

Err_Command28_Click:
MsgBox Err.Description
Resume Exit_Command28_Click

End Sub
Any suggestions?

Thanks,

Brook


--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...forms/200512/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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Need Help In Printing Current Record in Specific Report RNUSZ@OKDPS Setting Up & Running Reports 1 May 16th, 2005 09:06 PM
strategy for data entry in multiple tables LAF Using Forms 18 April 25th, 2005 04:04 AM
Strange stLinkCriteria behaviour on command button Anthony Dowd Using Forms 3 August 21st, 2004 03:01 AM
Transferring Current Record From One Form To Another Abilly General Discussion 1 August 3rd, 2004 01:05 PM
Recordset in subform based on field in parent form Lyn General Discussion 15 June 14th, 2004 03:10 PM


All times are GMT +1. The time now is 09:17 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.