Form and Stored Procedure?

C

Carlos

Form based on Stored Procedure where AccountCode = @ActCod.
There are multiple entries with one AccountCode and I want
to display a specified entry based on the id. That is,
when the account is added/edited with say id 20398, I will
refresh the screen (this will display record with id = 1).
At this point, I want to know what to do to automatically
display record 20398.

Help is greatly appreciated.

Charles
 
V

Vadim Rapp

Hello Carlos:
You wrote in conference microsoft.public.access.adp.sqlserver on Wed, 10
Mar 2004 11:42:09 -0800:

C> Form based on Stored Procedure where AccountCode = @ActCod.
C> There are multiple entries with one AccountCode and I want
C> to display a specified entry based on the id. That is,
C> when the account is added/edited with say id 20398, I will
C> refresh the screen (this will display record with id = 1).
C> At this point, I want to know what to do to automatically
C> display record 20398.

one of the ways:

Dim rs As Recordset, BM as variant
Set rs = RecordsetClone
rs.Filter = "id=20398""
Bm = RecordsetClone.Bookmark
rs.Filter = ""
Bookmark =bm

Vadim
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top