473,395 Members | 1,556 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Unbound ADO Continuous Sub-Form Form?

Hello All,

Is is possible to use an ADO recordset to populate an unbound continuous
Subform?

I've done some Googling without much luck, so this maybe impossible, but
let me try to explain why. I've been exploring using Access as a front
end to both SQL MSDE and Oracle XE. I'm in the process of writing a
class to handle the basics of the ADO connection and recordsets. The
basic relationships are as follows:

1 Main form with Company data (one side of relationship)

2 Subform with Exec data (many side of relationship)

3 Subform with Recordset Selectors buttons (Next, Previous, Last, &
First), current record # and total recordset count

4 Subform with Command buttons (i.e. Save, Cancel, Edit, New Record,
& Delete)

I've written successfully the complete form and subform (i.e. 1 & 2
above) WITHOUT the class and subforms for the recordset selectors and
command buttons (i.e. 3 & 4) above. This works if I dump the Exec data
into a temp Access table in the MDE file. LOTS OF CODE.

I can reduce the code by using the class. I've started writing the class
and have the Recordset Selectors buttons functionality working (i.e. 3
above) when I came across the ideal of form multiple instances per Allen
Brown's web site at http://allenbrowne.com/ser-35.html.

The PROBLEM: The Exec data in the subform which is the many side of the
relationship is currently using the temp Access table in the MDE file
which prevents multiple instances since there is only 1 set of Execs
which may not correlate with the other open instances of the form. Hence
the original question.

TIA!

--
Regards,

Greg Strong
Jun 8 '07 #1
6 4833
On Fri, 08 Jun 2007 12:33:24 -0500, Greg Strong
<ne*********@geedubeeu.com.invalidwrote:
>This works if I dump the Exec data
into a temp Access table in the MDE file. LOTS OF CODE.
^

MDB file

Sorry about the mistake!

--
Regards,

Greg Strong
Jun 8 '07 #2
>>
Is is possible to use an ADO recordset to populate an unbound continuous
Subform?
<<

No.

An Access form/subform has to read data from a persistent table or a
snapshot of a persistent table - like from a query or stored procedure.
ADO (com ADO) can't create an in-memory table like ADO.Net. What you
can do is to create a temp table within Access and populate that with
your ADO recordset. Then set your form recordsource to that table. But
as long as you are using a Server DB for the backend, you might consider
using stored procedures.

Rich

*** Sent via Developersdex http://www.developersdex.com ***
Jun 8 '07 #3
Nevermind about stored procedures. That would only work on an ADP.
With an mdb you can only use ADO or ODBC to use Data from a Server DB.

Rich

*** Sent via Developersdex http://www.developersdex.com ***
Jun 8 '07 #4
On 08 Jun 2007 20:34:47 GMT, Rich P <rp*****@aol.comwrote:
>>>
Is is possible to use an ADO recordset to populate an unbound continuous
Subform?
<<

No.
I've been informed from another source which has provided ideals that is
working in my code. Saying it simple we disagree with your answer.

See code below. Note the class has more code than necessary because I
was experimenting with different approaches. The solution has (1) the
form setting the recordset = to the opened ADO recordset in the class
module after passing it the form with (2) the appropriate controls for
the recordset 'Control Source' = to the field name.

(1) Set pfrm.Recordset = grsAcl 'see Sub FillContinuousFormOut

(2) on form property Control Source of 'field name' (ie. COID, etc)
--
Regards,

Greg Strong

Unbound form code with Textboxes Control source = Recordset field name
-------------------------------------------------------------->
Option Compare Database
Option Explicit
Public objADOform As FormADOReadWrite
Dim frm As Form
Dim strFrmName As String
Dim lngRcdNumber As Long
Private Sub Form_Close()
Set frm = Nothing
objADOform.CloseCnnADOcl
objADOform.Cleanup
End Sub
Private Sub Form_Open(Cancel As Integer)
strFrmName = Me.Name
Set frm = Forms(Me.Name)
Set objADOform = New FormADOReadWrite
objADOform.OpenCnnADOcl
objADOform.SetSQLRecordSet strFrmName
objADOform.FillContinuousFormOut frm
End Sub
Private Sub txtFocus_GotFocus()
'set focus to run code
Me!fsbRcdNavgtADO.SetFocus
Me!fsbRcdNavgtADO.Form!txtSubNavFocus.SetFocus
End Sub
--------------------------------------------------------------<


Class module FormADOReadWrite:
-------------------------------------------------------------->
Option Compare Database
Option Explicit
Private gcnnADOcl As ADODB.Connection
Private grsAcl As ADODB.Recordset
Private mobjSubFrmNav As SubFrmRecdNavigate
Private glngRecdCount As Long, mlngMoveNextRecordNo As Long, _
mlngMovePrevRecordNo As Long

Property Let RecordSetCount(lngRecNo As Long)
'grsAcl.MoveFirst
'grsAcl.MoveLast
lngRecNo = grsAcl.RecordCount
'grsAcl.MoveFirst
glngRecdCount = lngRecNo
End Property
Property Get RecordSetCount() As Long
RecordSetCount = glngRecdCount
End Property
Property Let MoveNextRecordNo(lngPrevRecdNo As Long)
'Debug.Print "MoveNext Let / Prev Recd No: "; lngPrevRecdNo & " Recd
Cnt: " & glngRecdCount
If lngPrevRecdNo + 1 <= glngRecdCount Then
lngPrevRecdNo = lngPrevRecdNo + 1
mlngMoveNextRecordNo = lngPrevRecdNo
Else
mlngMoveNextRecordNo = lngPrevRecdNo
End If
End Property
Property Get MoveNextRecordNo() As Long
MoveNextRecordNo = mlngMoveNextRecordNo
End Property
Property Let MovePreviousRecordNo(lngNextRecdNo As Long)
If lngNextRecdNo - 1 0 Then
lngNextRecdNo = lngNextRecdNo - 1
mlngMovePrevRecordNo = lngNextRecdNo
Else
mlngMovePrevRecordNo = lngNextRecdNo
End If
End Property
Property Get MovePreviousRecordNo() As Long
MovePreviousRecordNo = mlngMovePrevRecordNo
End Property
Sub OpenCnnADOcl()
Set gcnnADOcl = New ADODB.Connection

With gcnnADOcl
.ConnectionString = SetConStr(1)
.Open
End With

End Sub
Sub CloseCnnADOcl()
Set grsAcl = Nothing
With gcnnADOcl
.Close
End With

End Sub
Sub SetSQLRecordSet(ByVal strFormName As String)
Dim strSQL As String

Select Case strFormName
Case "frmCoToDo"
'pull all co's w/ ToDo = -1
strSQL = "SELECT " & gstrTblSpc & ".TBLCOMPANYINFO.COID, " &
gstrTblSpc & ".TBLCOMPANYINFO.CONAME, " & gstrTblSpc &
".TBLCOMPANYINFO.DIV, " & gstrTblSpc & ".TBLCOMPANYINFO.PHYSADDR, " &
gstrTblSpc & ".TBLCOMPANYINFO.PHYSCITY, " & gstrTblSpc &
".TBLCOMPANYINFO.PHYSSTATE, " & gstrTblSpc & ".TBLCOMPANYINFO.PHYSZIP, "
& gstrTblSpc & ".TBLCOMPANYINFO.PHYSCTY, " & gstrTblSpc &
".TBLCOMPANYINFO.MAILADDR, " & gstrTblSpc & ".TBLCOMPANYINFO.MAILCITY, "
& gstrTblSpc & ".TBLCOMPANYINFO.MAILSTATE, " & _
gstrTblSpc & ".TBLCOMPANYINFO.MAILZIP, " & gstrTblSpc &
".TBLCOMPANYINFO.CPUBRAND, " & gstrTblSpc & ".TBLCOMPANYINFO.CPUMODEL, "
& gstrTblSpc & ".TBLCOMPANYINFO.CPULANG, " & gstrTblSpc &
".TBLCOMPANYINFO.TELENUMBER, " & gstrTblSpc &
".TBLCOMPANYINFO.YEARESTAB, " & gstrTblSpc &
".TBLCOMPANYINFO.DISTRIBTYPE, " & gstrTblSpc &
".TBLCOMPANYINFO.OWNERTYPE, " & gstrTblSpc & ".TBLCOMPANYINFO.LOCCOUNT,
" & gstrTblSpc & ".TBLCOMPANYINFO.PRIMARYSIC, " & _
gstrTblSpc & ".TBLCOMPANYINFO.SIC2, " & gstrTblSpc &
".TBLCOMPANYINFO.SIC3, " & gstrTblSpc & ".TBLCOMPANYINFO.SIC4, " &
gstrTblSpc & ".TBLCOMPANYINFO.MINSALES, " & gstrTblSpc &
".TBLCOMPANYINFO.MAXSALES, " & gstrTblSpc & ".TBLCOMPANYINFO.SQUAREFEET,
" & gstrTblSpc & ".TBLCOMPANYINFO.IMPORTS, " & gstrTblSpc &
".TBLCOMPANYINFO.LocalTollNo, " & gstrTblSpc &
".TBLCOMPANYINFO.NATLTOLLNO, " & gstrTblSpc & ".TBLCOMPANYINFO.FAXNO, "
& gstrTblSpc & ".TBLCOMPANYINFO.PRODUCTS, " & _
gstrTblSpc & ".TBLCOMPANYINFO.BRANDS, " & gstrTblSpc &
".TBLCOMPANYINFO.PARENTNAME, " & gstrTblSpc &
".TBLCOMPANYINFO.PARENTADDR, " & gstrTblSpc &
".TBLCOMPANYINFO.PARENTCITY, " & gstrTblSpc &
".TBLCOMPANYINFO.PARENTSTATE, " & gstrTblSpc &
".TBLCOMPANYINFO.PARENTZIP, " & gstrTblSpc &
".TBLCOMPANYINFO.PARENTTELENO, " & gstrTblSpc & ".TBLCOMPANYINFO.WEBURL,
" & gstrTblSpc & ".TBLCOMPANYINFO.EMAIL, " & gstrTblSpc &
".TBLCOMPANYINFO.TODO " & _
"FROM " & gstrTblSpc & ".TBLCOMPANYINFO " & _
"WHERE (((" & gstrTblSpc & ".TBLCOMPANYINFO.TODO)=-1)) "
& _
"ORDER BY " & gstrTblSpc & ".TBLCOMPANYINFO.COID"
'Debug.Print "sql frmCoToDo"

Case "frmContactInfo"
strSQL = "SELECT " & gstrTblSpc & ".CONTACTID, " &
gstrTblSpc & ".CONTACTDATE, " & gstrTblSpc & ".EXECID, " & gstrTblSpc &
".TYPEID, " & gstrTblSpc & ".NOTES, " & gstrTblSpc & ".COMPLETED, " &
gstrTblSpc & ".COMPLETEDDATE"
Debug.Print "sql frmContactInfo"

Case "frmTest"
strSQL = "SELECT " & gstrTblSpc & ".TBLCOMPANYINFO.COID, " &
gstrTblSpc & ".TBLCOMPANYINFO.CONAME, " & gstrTblSpc &
".TBLCOMPANYINFO.DIV, " & gstrTblSpc & ".TBLCOMPANYINFO.PHYSADDR, " &
gstrTblSpc & ".TBLCOMPANYINFO.PHYSCITY, " & gstrTblSpc &
".TBLCOMPANYINFO.PHYSSTATE, " & gstrTblSpc & ".TBLCOMPANYINFO.PHYSZIP, "
& gstrTblSpc & ".TBLCOMPANYINFO.PHYSCTY, " & gstrTblSpc &
".TBLCOMPANYINFO.MAILADDR, " & gstrTblSpc & ".TBLCOMPANYINFO.MAILCITY, "
& gstrTblSpc & ".TBLCOMPANYINFO.MAILSTATE, " & _
gstrTblSpc & ".TBLCOMPANYINFO.MAILZIP, " & gstrTblSpc &
".TBLCOMPANYINFO.CPUBRAND, " & gstrTblSpc & ".TBLCOMPANYINFO.CPUMODEL, "
& gstrTblSpc & ".TBLCOMPANYINFO.CPULANG, " & gstrTblSpc &
".TBLCOMPANYINFO.TELENUMBER, " & gstrTblSpc &
".TBLCOMPANYINFO.YEARESTAB, " & gstrTblSpc &
".TBLCOMPANYINFO.DISTRIBTYPE, " & gstrTblSpc &
".TBLCOMPANYINFO.OWNERTYPE, " & gstrTblSpc & ".TBLCOMPANYINFO.LOCCOUNT,
" & gstrTblSpc & ".TBLCOMPANYINFO.PRIMARYSIC, " & _
gstrTblSpc & ".TBLCOMPANYINFO.SIC2, " & gstrTblSpc &
".TBLCOMPANYINFO.SIC3, " & gstrTblSpc & ".TBLCOMPANYINFO.SIC4, " &
gstrTblSpc & ".TBLCOMPANYINFO.MINSALES, " & gstrTblSpc &
".TBLCOMPANYINFO.MAXSALES, " & gstrTblSpc & ".TBLCOMPANYINFO.SQUAREFEET,
" & gstrTblSpc & ".TBLCOMPANYINFO.IMPORTS, " & gstrTblSpc &
".TBLCOMPANYINFO.LocalTollNo, " & gstrTblSpc &
".TBLCOMPANYINFO.NATLTOLLNO, " & gstrTblSpc & ".TBLCOMPANYINFO.FAXNO, "
& gstrTblSpc & ".TBLCOMPANYINFO.PRODUCTS, " & _
gstrTblSpc & ".TBLCOMPANYINFO.BRANDS, " & gstrTblSpc &
".TBLCOMPANYINFO.PARENTNAME, " & gstrTblSpc &
".TBLCOMPANYINFO.PARENTADDR, " & gstrTblSpc &
".TBLCOMPANYINFO.PARENTCITY, " & gstrTblSpc &
".TBLCOMPANYINFO.PARENTSTATE, " & gstrTblSpc &
".TBLCOMPANYINFO.PARENTZIP, " & gstrTblSpc &
".TBLCOMPANYINFO.PARENTTELENO, " & gstrTblSpc & ".TBLCOMPANYINFO.WEBURL,
" & gstrTblSpc & ".TBLCOMPANYINFO.EMAIL, " & gstrTblSpc &
".TBLCOMPANYINFO.TODO " & _
"FROM " & gstrTblSpc & ".TBLCOMPANYINFO " & _
"WHERE (((" & gstrTblSpc & ".TBLCOMPANYINFO.TODO)=-1)) "
& _
"ORDER BY " & gstrTblSpc & ".TBLCOMPANYINFO.COID"
'Debug.Print "sql frmCoToDo"

Case "frmTest_r2"
strSQL = "SELECT " & gstrTblSpc & ".TBLCOMPANYINFO.COID, " &
gstrTblSpc & ".TBLCOMPANYINFO.CONAME, " & gstrTblSpc &
".TBLCOMPANYINFO.DIV, " & gstrTblSpc & ".TBLCOMPANYINFO.PHYSADDR, " &
gstrTblSpc & ".TBLCOMPANYINFO.PHYSCITY, " & gstrTblSpc &
".TBLCOMPANYINFO.PHYSSTATE, " & gstrTblSpc & ".TBLCOMPANYINFO.PHYSZIP, "
& gstrTblSpc & ".TBLCOMPANYINFO.PHYSCTY, " & gstrTblSpc &
".TBLCOMPANYINFO.MAILADDR, " & gstrTblSpc & ".TBLCOMPANYINFO.MAILCITY, "
& gstrTblSpc & ".TBLCOMPANYINFO.MAILSTATE, " & _
gstrTblSpc & ".TBLCOMPANYINFO.MAILZIP, " & gstrTblSpc &
".TBLCOMPANYINFO.CPUBRAND, " & gstrTblSpc & ".TBLCOMPANYINFO.CPUMODEL, "
& gstrTblSpc & ".TBLCOMPANYINFO.CPULANG, " & gstrTblSpc &
".TBLCOMPANYINFO.TELENUMBER, " & gstrTblSpc &
".TBLCOMPANYINFO.YEARESTAB, " & gstrTblSpc &
".TBLCOMPANYINFO.DISTRIBTYPE, " & gstrTblSpc &
".TBLCOMPANYINFO.OWNERTYPE, " & gstrTblSpc & ".TBLCOMPANYINFO.LOCCOUNT,
" & gstrTblSpc & ".TBLCOMPANYINFO.PRIMARYSIC, " & _
gstrTblSpc & ".TBLCOMPANYINFO.SIC2, " & gstrTblSpc &
".TBLCOMPANYINFO.SIC3, " & gstrTblSpc & ".TBLCOMPANYINFO.SIC4, " &
gstrTblSpc & ".TBLCOMPANYINFO.MINSALES, " & gstrTblSpc &
".TBLCOMPANYINFO.MAXSALES, " & gstrTblSpc & ".TBLCOMPANYINFO.SQUAREFEET,
" & gstrTblSpc & ".TBLCOMPANYINFO.IMPORTS, " & gstrTblSpc &
".TBLCOMPANYINFO.LocalTollNo, " & gstrTblSpc &
".TBLCOMPANYINFO.NATLTOLLNO, " & gstrTblSpc & ".TBLCOMPANYINFO.FAXNO, "
& gstrTblSpc & ".TBLCOMPANYINFO.PRODUCTS, " & _
gstrTblSpc & ".TBLCOMPANYINFO.BRANDS, " & gstrTblSpc &
".TBLCOMPANYINFO.PARENTNAME, " & gstrTblSpc &
".TBLCOMPANYINFO.PARENTADDR, " & gstrTblSpc &
".TBLCOMPANYINFO.PARENTCITY, " & gstrTblSpc &
".TBLCOMPANYINFO.PARENTSTATE, " & gstrTblSpc &
".TBLCOMPANYINFO.PARENTZIP, " & gstrTblSpc &
".TBLCOMPANYINFO.PARENTTELENO, " & gstrTblSpc & ".TBLCOMPANYINFO.WEBURL,
" & gstrTblSpc & ".TBLCOMPANYINFO.EMAIL, " & gstrTblSpc &
".TBLCOMPANYINFO.TODO " & _
"FROM " & gstrTblSpc & ".TBLCOMPANYINFO " & _
"WHERE (((" & gstrTblSpc & ".TBLCOMPANYINFO.TODO)=-1)) "
& _
"ORDER BY " & gstrTblSpc & ".TBLCOMPANYINFO.COID"
'Debug.Print "sql frmCoToDo"

Case "frm_Test_ContinuousForm"
strSQL = "SELECT " & gstrTblSpc & ".TBLCOMPANYINFO.COID, " &
gstrTblSpc & ".TBLCOMPANYINFO.CONAME, " & gstrTblSpc &
".TBLCOMPANYINFO.DIV, " & gstrTblSpc & ".TBLCOMPANYINFO.PHYSADDR, " &
gstrTblSpc & ".TBLCOMPANYINFO.PHYSCITY, " & gstrTblSpc &
".TBLCOMPANYINFO.PHYSSTATE, " & gstrTblSpc & ".TBLCOMPANYINFO.PHYSZIP, "
& gstrTblSpc & ".TBLCOMPANYINFO.PHYSCTY, " & gstrTblSpc &
".TBLCOMPANYINFO.MAILADDR, " & gstrTblSpc & ".TBLCOMPANYINFO.MAILCITY, "
& gstrTblSpc & ".TBLCOMPANYINFO.MAILSTATE, " & _
gstrTblSpc & ".TBLCOMPANYINFO.MAILZIP, " & gstrTblSpc &
".TBLCOMPANYINFO.CPUBRAND, " & gstrTblSpc & ".TBLCOMPANYINFO.CPUMODEL, "
& gstrTblSpc & ".TBLCOMPANYINFO.CPULANG, " & gstrTblSpc &
".TBLCOMPANYINFO.TELENUMBER, " & gstrTblSpc &
".TBLCOMPANYINFO.YEARESTAB, " & gstrTblSpc &
".TBLCOMPANYINFO.DISTRIBTYPE, " & gstrTblSpc &
".TBLCOMPANYINFO.OWNERTYPE, " & gstrTblSpc & ".TBLCOMPANYINFO.LOCCOUNT,
" & gstrTblSpc & ".TBLCOMPANYINFO.PRIMARYSIC, " & _
gstrTblSpc & ".TBLCOMPANYINFO.SIC2, " & gstrTblSpc &
".TBLCOMPANYINFO.SIC3, " & gstrTblSpc & ".TBLCOMPANYINFO.SIC4, " &
gstrTblSpc & ".TBLCOMPANYINFO.MINSALES, " & gstrTblSpc &
".TBLCOMPANYINFO.MAXSALES, " & gstrTblSpc & ".TBLCOMPANYINFO.SQUAREFEET,
" & gstrTblSpc & ".TBLCOMPANYINFO.IMPORTS, " & gstrTblSpc &
".TBLCOMPANYINFO.LocalTollNo, " & gstrTblSpc &
".TBLCOMPANYINFO.NATLTOLLNO, " & gstrTblSpc & ".TBLCOMPANYINFO.FAXNO, "
& gstrTblSpc & ".TBLCOMPANYINFO.PRODUCTS, " & _
gstrTblSpc & ".TBLCOMPANYINFO.BRANDS, " & gstrTblSpc &
".TBLCOMPANYINFO.PARENTNAME, " & gstrTblSpc &
".TBLCOMPANYINFO.PARENTADDR, " & gstrTblSpc &
".TBLCOMPANYINFO.PARENTCITY, " & gstrTblSpc &
".TBLCOMPANYINFO.PARENTSTATE, " & gstrTblSpc &
".TBLCOMPANYINFO.PARENTZIP, " & gstrTblSpc &
".TBLCOMPANYINFO.PARENTTELENO, " & gstrTblSpc & ".TBLCOMPANYINFO.WEBURL,
" & gstrTblSpc & ".TBLCOMPANYINFO.EMAIL, " & gstrTblSpc &
".TBLCOMPANYINFO.TODO " & _
"FROM " & gstrTblSpc & ".TBLCOMPANYINFO " & _
"WHERE (((" & gstrTblSpc & ".TBLCOMPANYINFO.TODO)=-1)) "
& _
"ORDER BY " & gstrTblSpc & ".TBLCOMPANYINFO.COID"
'Debug.Print "sql frmCoToDo"
End Select

'Debug.Print strSQL

Call OpenRecordSetA_ADO(gcnnADOcl, strSQL)

End Sub
Sub OpenRecordSetA_ADO(cnnOpened As ADODB.Connection, _
pstrSQLa As String)
Set grsAcl = New ADODB.Recordset

'Debug.Print pstrSQLa
With grsAcl
.CursorType = adOpenStatic
.CursorLocation = adUseClient
.Open pstrSQLa, cnnOpened, adOpenDynamic, adLockOptimistic
End With

End Sub

Sub FillContinuousFormOut(pfrm As Form)
Set pfrm.Recordset = grsAcl
End Sub
Sub ChgeParentFormControls(parentForm As Form, intButton As Integer)
Debug.Print "Parent Name: "; parentForm.Name & " Button #: ";
intButton
End Sub

Private Sub Class_Initialize()
Set mobjSubFrmNav = New SubFrmRecdNavigate
Set mobjSubFrmNav.Parent = Me
'Debug.Print "Parent Initialize event to set parent class"
End Sub
Sub Cleanup()
Set mobjSubFrmNav.Parent = Nothing
Set mobjSubFrmNav = Nothing
End Sub
Sub MoveNextRecord(lngRcdNoNext As Long)
'move to next record
'Debug.Print "Move Next Sub / lngRcdNoNext: "; lngRcdNoNext & "
glngRecdCount: " & glngRecdCount
'Debug.Print "Company Name B4: " & grsAcl!CONAME
If lngRcdNoNext + 1 <= glngRecdCount Then
grsAcl.MoveNext
'Debug.Print "Company Name After: " & grsAcl!CONAME
End If
End Sub
Sub MovePreviousRecord(lngRcdNoPrev As Long)
If lngRcdNoPrev - 1 0 Then
grsAcl.MovePrevious
End If
End Sub
Sub MoveFirstRecord()
If Not grsAcl.BOF Then
grsAcl.MoveFirst
End If
End Sub
Sub MoveLastRecord()
If Not grsAcl.EOF Then
grsAcl.MoveLast
End If
End Sub
--------------------------------------------------------------<
Jun 9 '07 #5
Greetings:
>>
"FROM " & gstrTblSpc & ".TBLCOMPANYINFO " & _
>>
Either I misenterpreted your question or else my response to the
question of "can you use an ADO recordset as the recordsource for a
continous form (or any Access form)" remains "No".
>>
"FROM " & gstrTblSpc & ".TBLCOMPANYINFO " & _
>>
This statement suggests what I suggested - that the data resides on a
persistent table - FROM " & gstrTblSpc -

I interpreted the question as if an MS Access form can have a
recordsource based on an "In Memory" recordset. My response to that
question is "NO". Only a .Net form can be based on an "In Memory"
recordset (dataset).
--so - looking at the question again:
>Is is possible to use an ADO recordset to populate an unbound
continuous
>Subform?
I may have misenterpreted the question. But that question sounds like
it is asking if you can use an "In Memory" recordset. Else, you
answered your own question. "Yes".

Rich

*** Sent via Developersdex http://www.developersdex.com ***
Jun 11 '07 #6
On 11 Jun 2007 15:13:04 GMT, Rich P <rp*****@aol.comwrote:
>I may have misenterpreted the question. But that question sounds like
it is asking if you can use an "In Memory" recordset. Else, you
answered your own question. "Yes".
I answered the question with support from other Access users. Maybe my
semantics were not correct. If so I do apologize. See code below.
Private grsAcl As ADODB.Recordset
The recordset is an ADO recordset.

--
Regards,

Greg Strong
Jun 15 '07 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Georges Heinesch | last post by:
Hi. I cannot change the value of an unbound control (txtSR and txtSS) within a sub call. I explain ... my sub (SRSS_set) takes the date (type date) as input, and returns 2 values (type time). ...
1
by: stuart | last post by:
I am trying to format a number in an unbound text field using the following format statement in the field's Exit event: txt11UnitWeight = Format(txt11UnitWeight, "00000.00") I want the number...
1
by: Jim M | last post by:
To prevent data corruption I have replaced a memo field on my form with an unbound control on my form that I populate with a function that fills it from a memo field from my table. When the form is...
4
by: Bill Stock | last post by:
The few times in the past that I've loaded unbound data, I've tended to cheat and use temp tables (not really unbound) or use code for small datasets. I'm currently involved in a project that...
6
by: jcrouse | last post by:
I am having problems with a Label_Paint event causing a continuous loop. Here is an explanation of the code. I right click on a label and a context menu pops up. I then select a menu...
12
by: MLH | last post by:
Can I somehow set a max length of chars entered into an unbound textbox control?
1
by: Martin | last post by:
Hi, I'm having a problem with a datagridview control when trying to read the value of an unbound checkbox cell. The code below works fine if I click on any text cell, bound or unbound, and...
7
by: ARC | last post by:
I've noticed that if you use code for the before update command for unbound controls, it doesn't really work. I tried the following: Me!ExportedYN.undo Cancel = True DoCmd.CancelEvent Exit...
9
by: prakashwadhwani | last post by:
I have an unbound combo box in the form header. I have used an input mask "CCCC" 40 times to limit the max number of characters to 40. When I tab into the combo box & press a character say "K"...
2
by: GISmatters | last post by:
I have unbound checkboxes in a nested gridview to allow multi-selection of "child" rows. For context, the parent gridview rows are for large "reports", the child rows are for various specific files...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.