473,651 Members | 2,512 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

No data for subform after Proc executes

Hello,
I have a combo box (Combo7) that needs to call a function during the
After Update event of the combo box. The function resides in an Access
2000 ADP Module called MMAnswerData_co de.

The following is the code of the function:

Public Function SubFormRS(FrmTa rget As Object)
Forms!frmAD_Ope ningForm!FrmTar get.RecordSourc e = "EXEC
dbo.AdSubFormRe cSource " & Forms!frmAD_Ope ningForm!SubFor mFilter
End Function

The function takes a form object as its argument and attempts to set
the record source of the form to the records returned by a SQL Server
2000 Proc called 'ADSubFormRecSo urce'. This Proc takes a parameter
called '@SubFormFilter varchar(19)'. The parameter gets its value from
Forms!frmAD_Ope ning!SubFormFil ter. 'SubFormFilter' is a text box on
the main form that that uses three concatenated values from a total of
three combo boxes to form the parameter required by @SubFormFilter.

The After Update event of Combo7 looks like this:

*************** ****
Private Sub Combo7_AfterUpd ate()

If Me.Combo4 = "HMR3" And Me.Combo2 = "01" Then
SubFormRS (frmG1_HMR3_Q3)
End If

Me.Combo11.RowS ource = "EXEC dbo.ADStudentCo mbo_sp " & Me.Combo7
*************** ***
Combo7 also sets the rowsource of another combo box during the
AfterUpdate event. The parameter being sent to the SubFormRS is the
name of a form.
The Proc (at a high level) looks like this:
*************** ***************
Create Procedure ADSubformRecSou rce_sp
@SubFormFilter varchar (19)
AS
Select *
From tblADRawAnswerD ata AD
Left Outer Join Student_Data_Ma in SD On SD.Permnum = AD.Permnum
Inner Join Teacher_Data_Ma in TD On TD.TeacherID = SD.TeacherID

Where SD.Status is null
and
AD.TestShortNam e + Cast(AD.TestGra de as Varchar(2)) + TD.TeacherID =
@SubFormFilter
*************** ***************
I have tested the Proc with a parameter, and the proc works fine.

When I make a selection from Combo 7, I don't get an error message,
but it is evident that there is no recordset for the subform (the
bound text box controls in the subform all have '#Name?' in them).

What can I do so that when a selection is made from combo7, the record
source of the subform populates with records per the Proc parameter?

Thanks for your help!

CSDunn
Nov 12 '05 #1
4 1104
CSDunn wrote:
Hello,
I have a combo box (Combo7) that needs to call a function during the
After Update event of the combo box. The function resides in an Access
2000 ADP Module called MMAnswerData_co de.

The following is the code of the function:

Public Function SubFormRS(FrmTa rget As Object)
Forms!frmAD_Ope ningForm!FrmTar get.RecordSourc e = "EXEC
dbo.AdSubFormRe cSource " & Forms!frmAD_Ope ningForm!SubFor mFilter
End Function

< snip >

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I believe your reference to the subform's record source is incorrect.
Perhaps:

Forms!frmAD_Ope ningForm!FrmTar get.Form.Record Source = "EXEC " & _
" AdSubFormRecSou rce " & Forms!frmAD_Ope ningForm!SubFor mFilter

When referring to the Properties/Method of a subform you must include
".Form." between the subform's Control name and the subform's
property/method.

You don't need the default owner prefix (dbo) before the SP name, unless
there are other SPs w/ the same name, but different owners.

--
MGFoster:::mgf0 0 <at> earthlink <decimal-point> net
Oakland, CA (USA)

-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv

iQA/AwUBQHS2p4echKq OuFEgEQJPgQCfQZ xVpI2sZNgus/5o6Z0qhUCuZ3sAn 2p5
a7WeeB6ErtAYlVP gI8UIBfGb
=P3Yc
-----END PGP SIGNATURE-----

Nov 12 '05 #2
Hmmm. Not to sound rude, but the code is incorrect in so many ways
it's hard to know where to start. Trust me, though, we ALL started
out with the same misconceptions on how to code properly, so don't
take it personal :) It takes trial and error, and a good memory for
'what worked/didn't work last time'. I don't have the patience to
really read closely and post a solution using your exact field/control
names, but here's a some tips, both for a better app and to get better
help from the group:

1) a form must be OPEN to set it's recordsource via code. Maybe try
putting a text box on the form with the combo, and set it's value (in
afterupdate) to:

me.txtSQL = "EXEC dbo.AdSubFormRe cSource '" &
Forms!frmAD_Ope ningForm!SubFor mFilter & "'" (note two single quotes
you may be forgetting ;)

and then in the On Open event of the second form, say
me.recordsource = Forms!frmAD_Ope ningForm!txtSQL

2) NAME your controls and ALL your objects SOMETHING MEANINGFUL!!!
Don't be lazy and use the default chosen by Access. NOTHING screams
'unprofessional ' quite like this practice. It also makes it much
harder for people like us to help you, as we can't 'picture' anything
from the control names, nor can anyone else that you hand your project
off to later ;).

Personally, I use camelCase, and something like the following
nomenclature:
Controls:
txtTeacherFilte r (would be a textbox containing a string like
"[pkTeacherID]=1234"
cboTeacherID (combobox to choose pkTeacherID, note the pk to designate
a field which is a Primary Key. A table representing a teacher/course
relationship (many to many) would have [fkTeacherID] and [fkCourseID]
fields. These would be populated by [pkTeacherID] of tblTeachers and
[pkCourseID] of tblCourses.
lstCourseID (a listbox containing courses)

Tables:
tblTeachers (table of teachers)
tblCourses (table of courses)
tblTeacherCours e (many-to-many table, what I call a 'join' table,
though that's probably not an accepted term, representing which
teachers teach which courses. I use singular rather than plural to
designate this is a join table)
tlkpBuildings (a lookup aka unchanging table of buildings available
for courses to be in)

Forms/Subforms:
frmTeacher (form showing teachers in tblTeachers)
sfrmTeacherCour ses (continuous subform on frmTeacher which shows all
courses for one teacher - again, note singular Teacher, plural Courses
- this kind of naming REALLY helps keep your stuff straight!)

Reports/Subrpts:
rptTeachers (report of teachers - note that if the report is used to
print out just one teacher at a time, I'd probably call it rptTeacher)
srptTeachersCou rses (subreport of courses on the rptTeachers)

Queries:
qfrmTeachers (query used as recordsource of frmTeacher)
qlstTeachers (query rowsource of cboTeacherID or lstTeacherID - note:
personally, I use this nomenclature for both tbl and tlkp-type tables,
as long as the point is that the query is to populate combo or list
boxes)
qsrptTeacherCou rses (query recordsource of subreport showing Courses)

Note: A good application NEVER has people looking at the database
window itself. THerefore, maintain a consistency to the names that
will be useful to a developer, NOT the end user!
3) If you really like the external module dealie you got going, in
order to pass a form around different modules as an object, you want
to say something like (the form names I chose are random, not meant to
reflect your situation):
*************** *****
dim frm as form
set frm = Forms("frmMain" )
RunSub(frm)
**************
Public Sub RunSub (frmIn as Form)
frmIn.recordsou rce = Forms!frmAD_Ope ningForm!txtSQL

BUT, remember rule 1 above! This code works with OPEN forms only.

To refer to a recordsource of a subform from a main form, you'd say
the following. Note I recommend using the . nomenclature over the !,
as it's far more universal:

Forms("frmTeach er").ctlTeacher Courses.Form.Re cordsource = me.txtSQL

Where ctlTEacherCours es is the name of the CONTROL on the form which
houses the subform [sfrmTeacherCour ses].

Hope this all helps somewhat...

Peace,
Brett

cd***@valverde. edu (CSDunn) wrote in message news:<80******* *************** ****@posting.go ogle.com>...
Hello,
I have a combo box (Combo7) that needs to call a function during the
After Update event of the combo box. The function resides in an Access
2000 ADP Module called MMAnswerData_co de.

The following is the code of the function:

Public Function SubFormRS(FrmTa rget As Object)
Forms!frmAD_Ope ningForm!FrmTar get.RecordSourc e = "EXEC
dbo.AdSubFormRe cSource " & Forms!frmAD_Ope ningForm!SubFor mFilter
End Function

The function takes a form object as its argument and attempts to set
the record source of the form to the records returned by a SQL Server
2000 Proc called 'ADSubFormRecSo urce'. This Proc takes a parameter
called '@SubFormFilter varchar(19)'. The parameter gets its value from
Forms!frmAD_Ope ning!SubFormFil ter. 'SubFormFilter' is a text box on
the main form that that uses three concatenated values from a total of
three combo boxes to form the parameter required by @SubFormFilter.

The After Update event of Combo7 looks like this:

*************** ****
Private Sub Combo7_AfterUpd ate()

If Me.Combo4 = "HMR3" And Me.Combo2 = "01" Then
SubFormRS (frmG1_HMR3_Q3)
End If

Me.Combo11.RowS ource = "EXEC dbo.ADStudentCo mbo_sp " & Me.Combo7
*************** ***
Combo7 also sets the rowsource of another combo box during the
AfterUpdate event. The parameter being sent to the SubFormRS is the
name of a form.
The Proc (at a high level) looks like this:
*************** ***************
Create Procedure ADSubformRecSou rce_sp
@SubFormFilter varchar (19)
AS
Select *
From tblADRawAnswerD ata AD
Left Outer Join Student_Data_Ma in SD On SD.Permnum = AD.Permnum
Inner Join Teacher_Data_Ma in TD On TD.TeacherID = SD.TeacherID

Where SD.Status is null
and
AD.TestShortNam e + Cast(AD.TestGra de as Varchar(2)) + TD.TeacherID =
@SubFormFilter
*************** ***************
I have tested the Proc with a parameter, and the proc works fine.

When I make a selection from Combo 7, I don't get an error message,
but it is evident that there is no recordset for the subform (the
bound text box controls in the subform all have '#Name?' in them).

What can I do so that when a selection is made from combo7, the record
source of the subform populates with records per the Proc parameter?

Thanks for your help!

CSDunn

Nov 12 '05 #3
Brett,
I appreciate the input. For what its worth, I'm a guy who is trying to
move an organization into the .NET world, and I've spent a lot of time
trying to get up to speed on C#, ASP.NET, ADO.NET, and UML. Its a
little after 1:00am where I am, and here I am, trying to implement
better techniques into a form interface I have tried to migrate away
from for the last two years. I have spent very little time in study
with VBA, because two years ago, I saw a different future. Yet its me,
and my ADP, two years later, at 1:00am.

The good news is, I still believe. Its 1:00am, and I am delirious, but
I still believe.

Thank you again for your help. I will go to bed and examine your
suggestions more carefully when daylight returns.

CSDunn

bv******@sfhp.o rg (brett valjalo) wrote in message news:<1f******* *************** ****@posting.go ogle.com>...
Hmmm. Not to sound rude, but the code is incorrect in so many ways
it's hard to know where to start. Trust me, though, we ALL started
out with the same misconceptions on how to code properly, so don't
take it personal :) It takes trial and error, and a good memory for
'what worked/didn't work last time'. I don't have the patience to
really read closely and post a solution using your exact field/control
names, but here's a some tips, both for a better app and to get better
help from the group:

1) a form must be OPEN to set it's recordsource via code. Maybe try
putting a text box on the form with the combo, and set it's value (in
afterupdate) to:

me.txtSQL = "EXEC dbo.AdSubFormRe cSource '" &
Forms!frmAD_Ope ningForm!SubFor mFilter & "'" (note two single quotes
you may be forgetting ;)

and then in the On Open event of the second form, say
me.recordsource = Forms!frmAD_Ope ningForm!txtSQL

2) NAME your controls and ALL your objects SOMETHING MEANINGFUL!!!
Don't be lazy and use the default chosen by Access. NOTHING screams
'unprofessional ' quite like this practice. It also makes it much
harder for people like us to help you, as we can't 'picture' anything
from the control names, nor can anyone else that you hand your project
off to later ;).

Personally, I use camelCase, and something like the following
nomenclature:
Controls:
txtTeacherFilte r (would be a textbox containing a string like
"[pkTeacherID]=1234"
cboTeacherID (combobox to choose pkTeacherID, note the pk to designate
a field which is a Primary Key. A table representing a teacher/course
relationship (many to many) would have [fkTeacherID] and [fkCourseID]
fields. These would be populated by [pkTeacherID] of tblTeachers and
[pkCourseID] of tblCourses.
lstCourseID (a listbox containing courses)

Tables:
tblTeachers (table of teachers)
tblCourses (table of courses)
tblTeacherCours e (many-to-many table, what I call a 'join' table,
though that's probably not an accepted term, representing which
teachers teach which courses. I use singular rather than plural to
designate this is a join table)
tlkpBuildings (a lookup aka unchanging table of buildings available
for courses to be in)

Forms/Subforms:
frmTeacher (form showing teachers in tblTeachers)
sfrmTeacherCour ses (continuous subform on frmTeacher which shows all
courses for one teacher - again, note singular Teacher, plural Courses
- this kind of naming REALLY helps keep your stuff straight!)

Reports/Subrpts:
rptTeachers (report of teachers - note that if the report is used to
print out just one teacher at a time, I'd probably call it rptTeacher)
srptTeachersCou rses (subreport of courses on the rptTeachers)

Queries:
qfrmTeachers (query used as recordsource of frmTeacher)
qlstTeachers (query rowsource of cboTeacherID or lstTeacherID - note:
personally, I use this nomenclature for both tbl and tlkp-type tables,
as long as the point is that the query is to populate combo or list
boxes)
qsrptTeacherCou rses (query recordsource of subreport showing Courses)

Note: A good application NEVER has people looking at the database
window itself. THerefore, maintain a consistency to the names that
will be useful to a developer, NOT the end user!
3) If you really like the external module dealie you got going, in
order to pass a form around different modules as an object, you want
to say something like (the form names I chose are random, not meant to
reflect your situation):
*************** *****
dim frm as form
set frm = Forms("frmMain" )
RunSub(frm)
**************
Public Sub RunSub (frmIn as Form)
frmIn.recordsou rce = Forms!frmAD_Ope ningForm!txtSQL

BUT, remember rule 1 above! This code works with OPEN forms only.

To refer to a recordsource of a subform from a main form, you'd say
the following. Note I recommend using the . nomenclature over the !,
as it's far more universal:

Forms("frmTeach er").ctlTeacher Courses.Form.Re cordsource = me.txtSQL

Where ctlTEacherCours es is the name of the CONTROL on the form which
houses the subform [sfrmTeacherCour ses].

Hope this all helps somewhat...

Peace,
Brett

cd***@valverde. edu (CSDunn) wrote in message news:<80******* *************** ****@posting.go ogle.com>...
Hello,
I have a combo box (Combo7) that needs to call a function during the
After Update event of the combo box. The function resides in an Access
2000 ADP Module called MMAnswerData_co de.

The following is the code of the function:

Public Function SubFormRS(FrmTa rget As Object)
Forms!frmAD_Ope ningForm!FrmTar get.RecordSourc e = "EXEC
dbo.AdSubFormRe cSource " & Forms!frmAD_Ope ningForm!SubFor mFilter
End Function

The function takes a form object as its argument and attempts to set
the record source of the form to the records returned by a SQL Server
2000 Proc called 'ADSubFormRecSo urce'. This Proc takes a parameter
called '@SubFormFilter varchar(19)'. The parameter gets its value from
Forms!frmAD_Ope ning!SubFormFil ter. 'SubFormFilter' is a text box on
the main form that that uses three concatenated values from a total of
three combo boxes to form the parameter required by @SubFormFilter.

The After Update event of Combo7 looks like this:

*************** ****
Private Sub Combo7_AfterUpd ate()

If Me.Combo4 = "HMR3" And Me.Combo2 = "01" Then
SubFormRS (frmG1_HMR3_Q3)
End If

Me.Combo11.RowS ource = "EXEC dbo.ADStudentCo mbo_sp " & Me.Combo7
*************** ***
Combo7 also sets the rowsource of another combo box during the
AfterUpdate event. The parameter being sent to the SubFormRS is the
name of a form.
The Proc (at a high level) looks like this:
*************** ***************
Create Procedure ADSubformRecSou rce_sp
@SubFormFilter varchar (19)
AS
Select *
From tblADRawAnswerD ata AD
Left Outer Join Student_Data_Ma in SD On SD.Permnum = AD.Permnum
Inner Join Teacher_Data_Ma in TD On TD.TeacherID = SD.TeacherID

Where SD.Status is null
and
AD.TestShortNam e + Cast(AD.TestGra de as Varchar(2)) + TD.TeacherID =
@SubFormFilter
*************** ***************
I have tested the Proc with a parameter, and the proc works fine.

When I make a selection from Combo 7, I don't get an error message,
but it is evident that there is no recordset for the subform (the
bound text box controls in the subform all have '#Name?' in them).

What can I do so that when a selection is made from combo7, the record
source of the subform populates with records per the Proc parameter?

Thanks for your help!

CSDunn

Nov 12 '05 #4
Yeah, I too have been doing .net stuff of late (vb.net to be exact)
rather than Access, although I've developed in Access for nearly 6
years at this point, off and on...

I used to be here at cdms pretty much daily from 1999-2001, but yours
is the first 'serious' reply I've given here in at least a year.
Hopefully, it'll be of some use...

peace,
brett

Show Bush the Door in 04!!!

cd***@valverde. edu (CSDunn) wrote in message news:<80******* *************** ****@posting.go ogle.com>...
Brett,
I appreciate the input. For what its worth, I'm a guy who is trying to
move an organization into the .NET world, and I've spent a lot of time
trying to get up to speed on C#, ASP.NET, ADO.NET, and UML. Its a
little after 1:00am where I am, and here I am, trying to implement
better techniques into a form interface I have tried to migrate away
from for the last two years. I have spent very little time in study
with VBA, because two years ago, I saw a different future. Yet its me,
and my ADP, two years later, at 1:00am.

The good news is, I still believe. Its 1:00am, and I am delirious, but
I still believe.

Thank you again for your help. I will go to bed and examine your
suggestions more carefully when daylight returns.

CSDunn

bv******@sfhp.o rg (brett valjalo) wrote in message news:<1f******* *************** ****@posting.go ogle.com>...
Hmmm. Not to sound rude, but the code is incorrect in so many ways
it's hard to know where to start. Trust me, though, we ALL started
out with the same misconceptions on how to code properly, so don't
take it personal :) It takes trial and error, and a good memory for
'what worked/didn't work last time'. I don't have the patience to
really read closely and post a solution using your exact field/control
names, but here's a some tips, both for a better app and to get better
help from the group:

1) a form must be OPEN to set it's recordsource via code. Maybe try
putting a text box on the form with the combo, and set it's value (in
afterupdate) to:

me.txtSQL = "EXEC dbo.AdSubFormRe cSource '" &
Forms!frmAD_Ope ningForm!SubFor mFilter & "'" (note two single quotes
you may be forgetting ;)

and then in the On Open event of the second form, say
me.recordsource = Forms!frmAD_Ope ningForm!txtSQL

2) NAME your controls and ALL your objects SOMETHING MEANINGFUL!!!
Don't be lazy and use the default chosen by Access. NOTHING screams
'unprofessional ' quite like this practice. It also makes it much
harder for people like us to help you, as we can't 'picture' anything
from the control names, nor can anyone else that you hand your project
off to later ;).

Personally, I use camelCase, and something like the following
nomenclature:
Controls:
txtTeacherFilte r (would be a textbox containing a string like
"[pkTeacherID]=1234"
cboTeacherID (combobox to choose pkTeacherID, note the pk to designate
a field which is a Primary Key. A table representing a teacher/course
relationship (many to many) would have [fkTeacherID] and [fkCourseID]
fields. These would be populated by [pkTeacherID] of tblTeachers and
[pkCourseID] of tblCourses.
lstCourseID (a listbox containing courses)

Tables:
tblTeachers (table of teachers)
tblCourses (table of courses)
tblTeacherCours e (many-to-many table, what I call a 'join' table,
though that's probably not an accepted term, representing which
teachers teach which courses. I use singular rather than plural to
designate this is a join table)
tlkpBuildings (a lookup aka unchanging table of buildings available
for courses to be in)

Forms/Subforms:
frmTeacher (form showing teachers in tblTeachers)
sfrmTeacherCour ses (continuous subform on frmTeacher which shows all
courses for one teacher - again, note singular Teacher, plural Courses
- this kind of naming REALLY helps keep your stuff straight!)

Reports/Subrpts:
rptTeachers (report of teachers - note that if the report is used to
print out just one teacher at a time, I'd probably call it rptTeacher)
srptTeachersCou rses (subreport of courses on the rptTeachers)

Queries:
qfrmTeachers (query used as recordsource of frmTeacher)
qlstTeachers (query rowsource of cboTeacherID or lstTeacherID - note:
personally, I use this nomenclature for both tbl and tlkp-type tables,
as long as the point is that the query is to populate combo or list
boxes)
qsrptTeacherCou rses (query recordsource of subreport showing Courses)

Note: A good application NEVER has people looking at the database
window itself. THerefore, maintain a consistency to the names that
will be useful to a developer, NOT the end user!
3) If you really like the external module dealie you got going, in
order to pass a form around different modules as an object, you want
to say something like (the form names I chose are random, not meant to
reflect your situation):
*************** *****
dim frm as form
set frm = Forms("frmMain" )
RunSub(frm)
**************
Public Sub RunSub (frmIn as Form)
frmIn.recordsou rce = Forms!frmAD_Ope ningForm!txtSQL

BUT, remember rule 1 above! This code works with OPEN forms only.

To refer to a recordsource of a subform from a main form, you'd say
the following. Note I recommend using the . nomenclature over the !,
as it's far more universal:

Forms("frmTeach er").ctlTeacher Courses.Form.Re cordsource = me.txtSQL

Where ctlTEacherCours es is the name of the CONTROL on the form which
houses the subform [sfrmTeacherCour ses].

Hope this all helps somewhat...

Peace,
Brett

cd***@valverde. edu (CSDunn) wrote in message news:<80******* *************** ****@posting.go ogle.com>...
Hello,
I have a combo box (Combo7) that needs to call a function during the
After Update event of the combo box. The function resides in an Access
2000 ADP Module called MMAnswerData_co de.

The following is the code of the function:

Public Function SubFormRS(FrmTa rget As Object)
Forms!frmAD_Ope ningForm!FrmTar get.RecordSourc e = "EXEC
dbo.AdSubFormRe cSource " & Forms!frmAD_Ope ningForm!SubFor mFilter
End Function

The function takes a form object as its argument and attempts to set
the record source of the form to the records returned by a SQL Server
2000 Proc called 'ADSubFormRecSo urce'. This Proc takes a parameter
called '@SubFormFilter varchar(19)'. The parameter gets its value from
Forms!frmAD_Ope ning!SubFormFil ter. 'SubFormFilter' is a text box on
the main form that that uses three concatenated values from a total of
three combo boxes to form the parameter required by @SubFormFilter.

The After Update event of Combo7 looks like this:

*************** ****
Private Sub Combo7_AfterUpd ate()

If Me.Combo4 = "HMR3" And Me.Combo2 = "01" Then
SubFormRS (frmG1_HMR3_Q3)
End If

Me.Combo11.RowS ource = "EXEC dbo.ADStudentCo mbo_sp " & Me.Combo7
*************** ***
Combo7 also sets the rowsource of another combo box during the
AfterUpdate event. The parameter being sent to the SubFormRS is the
name of a form.
The Proc (at a high level) looks like this:
*************** ***************
Create Procedure ADSubformRecSou rce_sp
@SubFormFilter varchar (19)
AS
Select *
From tblADRawAnswerD ata AD
Left Outer Join Student_Data_Ma in SD On SD.Permnum = AD.Permnum
Inner Join Teacher_Data_Ma in TD On TD.TeacherID = SD.TeacherID

Where SD.Status is null
and
AD.TestShortNam e + Cast(AD.TestGra de as Varchar(2)) + TD.TeacherID =
@SubFormFilter
*************** ***************
I have tested the Proc with a parameter, and the proc works fine.

When I make a selection from Combo 7, I don't get an error message,
but it is evident that there is no recordset for the subform (the
bound text box controls in the subform all have '#Name?' in them).

What can I do so that when a selection is made from combo7, the record
source of the subform populates with records per the Proc parameter?

Thanks for your help!

CSDunn

Nov 12 '05 #5

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

Similar topics

3
2834
by: Bob | last post by:
I'm currently updating one of our web sites and have encountered a strange problem. The page that is giving me the problem is written in ASP and hits a SQL 2K DB. When I click submit I have 4 procs that need to be executed. I always get a sql server timeout error. I opened up Profiler and traced the events. The page hangs on the last proc called which is basically a select * where id = @id. If I run the same proc that hangs in query...
0
427
by: CSDunn | last post by:
Hello, I have a format issue on an Access 2000 ADP report that I am going to attempt to explain from a 'ten thousand foot view' : I have an Access 2000 ADP report that has a SQL Server 2000 Stored Procedure as its record source. The Proc is called MM_rptTeacherGroupingTest_sp. In order to help communicate the issue I am having with the report, please take a look at the following: http://www.valverde.edu/home/policy/ReportLayout.htm .
4
2281
by: CSDunn | last post by:
Hello, I have a combo box (Combo7) that needs to call a function during the After Update event of the combo box. The function resides in an Access 2000 ADP Module called MMAnswerData_code. The following is the code of the function: Public Function SubFormRS(FrmTarget As Object) Forms!frmAD_OpeningForm!FrmTarget.RecordSource = "EXEC dbo.AdSubFormRecSource " & Forms!frmAD_OpeningForm!SubFormFilter
0
2349
by: CSDunn | last post by:
Hello, In Access ADP's that connect to SQL Server databases, any time I have a situation where I have a combo box in a main form that looks up a record in a subform, the subform record source has to be based on either a View or a Table. I can almost always use a View, and it helps to do this since I can have better control over the size of the RecordSet of the subform. There are times when the use of a Stored Procedure would give me...
1
2133
by: Tim Marshall | last post by:
Given a bound continuous subform in an unbound main form, a button on the subform sets allowadditions = true and dataentry = true. This works no problem. But a second button on the subform which is meant to switch the the above off crashes whenever me.dataentry = false is executed. The full code for the button is: Private Sub btnOK_Click()
14
3639
by: aaron kempf | last post by:
I find that ADP does not support any Stored Procedures that use the 'CREATE PROC spHAPPY' syntax. CREATE PROC syntax is listed in books online. This syntax should be supported Here is a scenario: 1) create proc using query analyzer and CREATE PROC spHAPPY syntax 2) open this proc in ADP
6
3792
by: Tom | last post by:
I have a button on a main form that executes code to write to the subform. The subform's AllowAdditions property is set to false and in the button's code the subform's AllowAdditions property is set to True before the code to write to the subform. The code to set AllowAdditions to True is: Me!NameOfSubformControl.Form.AllowAdditions = True When I click the button, I get the error message, Error 2448 You can't assign a value to this object....
20
37879
by: TC | last post by:
I need an automated procedure to copy data from an Access table to a SQL Server table. Speed is important. What is the recommended technique? I can export the data from Access, copy it via FTP, then import it into SQL Server. I've tried that, and the speed is acceptable. It is an ugly solution, however, and I expect to find a better one -- preferably a solution better integrated with the Access RDBMS. I've tried using an ODBC...
1
5456
by: tizmagik | last post by:
I have a Starting form ("frmStart") and a main form ("frmCustomer") inside frmCustomer are two subform, one with it's own subform. So frmCustomer has two subforms ("sbfArtist" and "sbfAddress") inside subform "sbfArtist" is another subform, "sbfTitle"... I'll try to create a visible heiarchy: frmStart ----frmCustomer --------sbfAddress --------sbfArtist
7
4089
by: SBC News Groups | last post by:
I have a form that the user enters some information on and then clicks a button to save the record. I do with the following line: DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70 Once this line executes, I have a sub form that I want to "refresh" because the newly saved information should now display on the sub form. I am trying to do this with this line: Forms!.Requery
0
8352
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8697
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
7297
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6158
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4144
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4283
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2699
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1909
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1587
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.