473,417 Members | 1,554 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,417 software developers and data experts.

automatically populating subform

I'll pulling my hair out on this one and would be so appreciative of
any help.

I am creating a data entry form to enter results of a student survey.

There are 40 questions on the survey. The first 7 have to do with
respondent information like grade, class and age. I have those in a
table with a PK of RespondentId, which is autonumbered. Questions 8-40
all have the same format. For these questions I have a table set up
with the respondentID as the FK, and a "questionnumber" and "answer"
field.

My main form has the respondent info on it. I have a tabular subform
for the remaining questions, with only the fields "questionnumber" and
"answer" on it. Here's my problem: I want the numbers 8 thru 40 to
automatically populate on this form, so only the answer to the
question needs to be input.How do I best go about doing so? I tried
setting up the default value of the "questionnumber" field to:

=1+DMax("questionnumber","tblStudentSurveyAnswers" ,"respondentid =
forms!frmStudentSurvey!respondentID"). I got close, but the number
repeats once before incrementing.

Any ideas?

TIA,
Mary

Apr 10 '07 #1
13 3495
On Apr 10, 3:28 pm, "Mary" <mmcgilliv...@msn.comwrote:
I'll pulling my hair out on this one and would be so appreciative of
any help.

I am creating a data entry form to enter results of a student survey.

There are 40 questions on the survey. The first 7 have to do with
respondent information like grade, class and age. I have those in a
table with a PK of RespondentId, which is autonumbered. Questions 8-40
all have the same format. For these questions I have a table set up
with the respondentID as the FK, and a "questionnumber" and "answer"
field.

My main form has the respondent info on it. I have a tabular subform
for the remaining questions, with only the fields "questionnumber" and
"answer" on it. Here's my problem: I want the numbers 8 thru 40 to
automatically populate on this form, so only the answer to the
question needs to be input.How do I best go about doing so? I tried
setting up the default value of the "questionnumber" field to:

=1+DMax("questionnumber","tblStudentSurveyAnswers" ,"respondentid =
forms!frmStudentSurvey!respondentID"). I got close, but the number
repeats once before incrementing.

Any ideas?

TIA,
Mary

Took me longer than I thought to come up with this, sorry.
Put this in your forms On Current. And to clarify
tblStudentSurveyAnswers Subform is the name of my subform, yours may
be different. Hope it works for you :)

Private Sub Form_Current()
Dim rsClone As Recordset
Dim db As Database
Set db = CurrentDb()

Set rsClone = Forms![frmStudentSurvey]![tblStudentSurveyAnswers
Subform].Form.RecordsetClone
If rsClone.RecordCount = 0 Then
For i = 8 To 40
db.Execute "Insert Into tblStudentSurveyAnswers
([RespondentID], [questionnumber]) Values('" & Me![RespondentID] & "',
'" & i & "')"
Next i
End If
Set rsClone = Nothing
Me.Refresh
End Sub

Apr 10 '07 #2
On Apr 10, 5:23 pm, "Queezy" <que...@gmail.comwrote:
On Apr 10, 3:28 pm, "Mary" <mmcgilliv...@msn.comwrote:


I'll pulling my hair out on this one and would be so appreciative of
any help.
I am creating a data entry form to enter results of a student survey.
There are 40 questions on the survey. The first 7 have to do with
respondent information like grade, class and age. I have those in a
table with a PK of RespondentId, which is autonumbered. Questions 8-40
all have the same format. For these questions I have a table set up
with the respondentID as the FK, and a "questionnumber" and "answer"
field.
My main form has the respondent info on it. I have a tabular subform
for the remaining questions, with only the fields "questionnumber" and
"answer" on it. Here's my problem: I want the numbers 8 thru 40 to
automatically populate on this form, so only the answer to the
question needs to be input.How do I best go about doing so? I tried
setting up the default value of the "questionnumber" field to:
=1+DMax("questionnumber","tblStudentSurveyAnswers" ,"respondentid =
forms!frmStudentSurvey!respondentID"). I got close, but the number
repeats once before incrementing.
Any ideas?
TIA,
Mary

Took me longer than I thought to come up with this, sorry.
Put this in your forms On Current. And to clarify
tblStudentSurveyAnswers Subform is the name of my subform, yours may
be different. Hope it works for you :)

Private Sub Form_Current()
Dim rsClone As Recordset
Dim db As Database
Set db = CurrentDb()

Set rsClone = Forms![frmStudentSurvey]![tblStudentSurveyAnswers
Subform].Form.RecordsetClone
If rsClone.RecordCount = 0 Then
For i = 8 To 40
db.Execute "Insert Into tblStudentSurveyAnswers
([RespondentID], [questionnumber]) Values('" & Me![RespondentID] & "',
'" & i & "')"
Next i
End If
Set rsClone = Nothing
Me.Refresh
End Sub- Hide quoted text -

- Show quoted text -
Thank you so much for taking the time to help me with this!

I've pasted your code and I'm almost there. The subform is not
populating until I advance to the next record using the navigation bar
and then come back to it. What am I missing?

Mary

Apr 10 '07 #3
On Apr 10, 6:43 pm, "Mary" <mmcgilliv...@msn.comwrote:
On Apr 10, 5:23 pm, "Queezy" <que...@gmail.comwrote:


On Apr 10, 3:28 pm, "Mary" <mmcgilliv...@msn.comwrote:
I'll pulling my hair out on this one and would be so appreciative of
any help.
I am creating a data entry form to enter results of a student survey.
There are 40 questions on the survey. The first 7 have to do with
respondent information like grade, class and age. I have those in a
table with a PK of RespondentId, which is autonumbered. Questions 8-40
all have the same format. For these questions I have a table set up
with the respondentID as the FK, and a "questionnumber" and "answer"
field.
My main form has the respondent info on it. I have a tabular subform
for the remaining questions, with only the fields "questionnumber" and
"answer" on it. Here's my problem: I want the numbers 8 thru 40 to
automatically populate on this form, so only the answer to the
question needs to be input.How do I best go about doing so? I tried
setting up the default value of the "questionnumber" field to:
=1+DMax("questionnumber","tblStudentSurveyAnswers" ,"respondentid =
forms!frmStudentSurvey!respondentID"). I got close, but the number
repeats once before incrementing.
Any ideas?
TIA,
Mary
Took me longer than I thought to come up with this, sorry.
Put this in your forms On Current. And to clarify
tblStudentSurveyAnswers Subform is the name of my subform, yours may
be different. Hope it works for you :)
Private Sub Form_Current()
Dim rsClone As Recordset
Dim db As Database
Set db = CurrentDb()
Set rsClone = Forms![frmStudentSurvey]![tblStudentSurveyAnswers
Subform].Form.RecordsetClone
If rsClone.RecordCount = 0 Then
For i = 8 To 40
db.Execute "Insert Into tblStudentSurveyAnswers
([RespondentID], [questionnumber]) Values('" & Me![RespondentID] & "',
'" & i & "')"
Next i
End If
Set rsClone = Nothing
Me.Refresh
End Sub- Hide quoted text -
- Show quoted text -

Thank you so much for taking the time to help me with this!

I've pasted your code and I'm almost there. The subform is not
populating until I advance to the next record using the navigation bar
and then come back to it. What am I missing?

Mary- Hide quoted text -

- Show quoted text -
To clarify my last post - The subform is not populating until I
advance the main form to the next record and come back to it. Then it
works great!

Apr 10 '07 #4
Hmmm...
My thoughts are that you are working with the recordset of the subform
already ... so why bother to insert records using an "INSERT INTO" SQL
statement. I also think that using the .LastModified and Bookmarking will
cause the subform to show the progress of the inserted records.

I'm going to use " '///Rev/// " on the lines that I have revised or added.
(Be advised that this has NOT been tested.)
============================

Private Sub Form_Current()
Dim rsClone As Recordset
Dim db As Database

Set db = CurrentDb()
Set rsClone =
Forms![frmStudentSurvey]![tblStudentSurveyAnswersSubform].Form.RecordsetClone

Dim MyID '///Rev///
MyID = Me![RespondentID] '///Rev///

With rsClone '///Rev///
If rsClone.RecordCount = 0 Then
For i = 8 To 40

'///Rev/// db.Execute "Insert Into
tblStudentSurveyAnswers([RespondentID], [questionnumber]) Values('" &
Me![RespondentID] & "', '" & i & "')"

.AddNew '///Rev///
!RespondentID = MyID '///Rev///
!QuestionNumber = i '///Rev///
.Update '///Rev///
.Bookmark = .LastModified '///Rev///
Me![tblStudentSurveyAnswersSubform].Form.Bookmark = .Bookmark
'///Rev///

Next i
End If
.Close '///Rev///
End With
Set rsClone = Nothing
Set db = Nothing '///Rev///
Me.Refresh
End Sub
============================

--
--
HTH,
Don
=============================
E-Mail (if you must) My*****@Telus.net

Disclaimer:
Professional PartsPerson
Amateur Database Programmer {:o)

I'm an Access97 user, so all posted code samples are also Access97- based
unless otherwise noted.

================================================== ========================

"Mary" <mm**********@msn.comwrote in message
news:11*********************@o5g2000hsb.googlegrou ps.com...
On Apr 10, 6:43 pm, "Mary" <mmcgilliv...@msn.comwrote:
>On Apr 10, 5:23 pm, "Queezy" <que...@gmail.comwrote:


On Apr 10, 3:28 pm, "Mary" <mmcgilliv...@msn.comwrote:
I'll pulling my hair out on this one and would be so appreciative of
any help.
I am creating a data entry form to enter results of a student survey.
There are 40 questions on the survey. The first 7 have to do with
respondent information like grade, class and age. I have those in a
table with a PK of RespondentId, which is autonumbered. Questions
8-40
all have the same format. For these questions I have a table set up
with the respondentID as the FK, and a "questionnumber" and "answer"
field.
My main form has the respondent info on it. I have a tabular subform
for the remaining questions, with only the fields "questionnumber"
and
"answer" on it. Here's my problem: I want the numbers 8 thru 40 to
automatically populate on this form, so only the answer to the
question needs to be input.How do I best go about doing so? I tried
setting up the default value of the "questionnumber" field to:
=1+DMax("questionnumber","tblStudentSurveyAnswers" ,"respondentid =
forms!frmStudentSurvey!respondentID"). I got close, but the number
repeats once before incrementing.
Any ideas?
TIA,
Mary
Took me longer than I thought to come up with this, sorry.
Put this in your forms On Current. And to clarify
tblStudentSurveyAnswers Subform is the name of my subform, yours may
be different. Hope it works for you :)
Private Sub Form_Current()
Dim rsClone As Recordset
Dim db As Database
Set db = CurrentDb()
Set rsClone = Forms![frmStudentSurvey]![tblStudentSurveyAnswers
Subform].Form.RecordsetClone
If rsClone.RecordCount = 0 Then
For i = 8 To 40
db.Execute "Insert Into tblStudentSurveyAnswers
([RespondentID], [questionnumber]) Values('" & Me![RespondentID] & "',
'" & i & "')"
Next i
End If
Set rsClone = Nothing
Me.Refresh
End Sub- Hide quoted text -
- Show quoted text -

Thank you so much for taking the time to help me with this!

I've pasted your code and I'm almost there. The subform is not
populating until I advance to the next record using the navigation bar
and then come back to it. What am I missing?

Mary- Hide quoted text -

- Show quoted text -

To clarify my last post - The subform is not populating until I
advance the main form to the next record and come back to it. Then it
works great!

Apr 11 '07 #5
On Apr 10, 6:54 pm, "Mary" <mmcgilliv...@msn.comwrote:
On Apr 10, 6:43 pm, "Mary" <mmcgilliv...@msn.comwrote:


On Apr 10, 5:23 pm, "Queezy" <que...@gmail.comwrote:
On Apr 10, 3:28 pm, "Mary" <mmcgilliv...@msn.comwrote:
I'll pulling my hair out on this one and would be so appreciative of
any help.
I am creating a data entry form to enter results of a student survey.
There are 40 questions on the survey. The first 7 have to do with
respondent information like grade, class and age. I have those in a
table with a PK of RespondentId, which is autonumbered. Questions 8-40
all have the same format. For these questions I have a table set up
with the respondentID as the FK, and a "questionnumber" and "answer"
field.
My main form has the respondent info on it. I have a tabular subform
for the remaining questions, with only the fields "questionnumber" and
"answer" on it. Here's my problem: I want the numbers 8 thru 40 to
automatically populate on this form, so only the answer to the
question needs to be input.How do I best go about doing so? I tried
setting up the default value of the "questionnumber" field to:
=1+DMax("questionnumber","tblStudentSurveyAnswers" ,"respondentid =
forms!frmStudentSurvey!respondentID"). I got close, but the number
repeats once before incrementing.
Any ideas?
TIA,
Mary
Took me longer than I thought to come up with this, sorry.
Put this in your forms On Current. And to clarify
tblStudentSurveyAnswers Subform is the name of my subform, yours may
be different. Hope it works for you :)
Private Sub Form_Current()
Dim rsClone As Recordset
Dim db As Database
Set db = CurrentDb()
Set rsClone = Forms![frmStudentSurvey]![tblStudentSurveyAnswers
Subform].Form.RecordsetClone
If rsClone.RecordCount = 0 Then
For i = 8 To 40
db.Execute "Insert Into tblStudentSurveyAnswers
([RespondentID], [questionnumber]) Values('" & Me![RespondentID] & "',
'" & i & "')"
Next i
End If
Set rsClone = Nothing
Me.Refresh
End Sub- Hide quoted text -
- Show quoted text -
Thank you so much for taking the time to help me with this!
I've pasted your code and I'm almost there. The subform is not
populating until I advance to the next record using the navigation bar
and then come back to it. What am I missing?
Mary- Hide quoted text -
- Show quoted text -

To clarify my last post - The subform is not populating until I
advance the main form to the next record and come back to it. Then it
works great!- Hide quoted text -

- Show quoted text -

Hmm, thats odd. The me.refresh should take care of that.

Apr 11 '07 #6
On Apr 11, 12:34 am, "Don Leverton"
<leveriteNoJunkM...@telusplanet.netwrote:
Hmmm...
My thoughts are that you are working with the recordset of the subform
already ... so why bother to insert records using an "INSERT INTO" SQL
statement. I also think that using the .LastModified and Bookmarking will
cause the subform to show the progress of the inserted records.

I'm going to use " '///Rev/// " on the lines that I have revised or added.
(Be advised that this has NOT been tested.)
============================

Private Sub Form_Current()
Dim rsClone As Recordset
Dim db As Database

Set db = CurrentDb()
Set rsClone =
Forms![frmStudentSurvey]![tblStudentSurveyAnswersSubform].Form.RecordsetClo*ne

Dim MyID '///Rev///
MyID = Me![RespondentID] '///Rev///

With rsClone '///Rev///
If rsClone.RecordCount = 0 Then
For i = 8 To 40

'///Rev/// db.Execute "Insert Into
tblStudentSurveyAnswers([RespondentID], [questionnumber]) Values('" &
Me![RespondentID] & "', '" & i & "')"

.AddNew '///Rev///
!RespondentID = MyID '///Rev///
!QuestionNumber = i '///Rev///
.Update '///Rev///
.Bookmark = .LastModified '///Rev///
Me![tblStudentSurveyAnswersSubform].Form.Bookmark = .Bookmark
'///Rev///

Next i
End If
.Close '///Rev///
End With
Set rsClone = Nothing
Set db = Nothing '///Rev///
Me.Refresh
End Sub
============================

--
--
HTH,
Don
=============================
E-Mail (if you must) My.N...@Telus.net

Disclaimer:
Professional PartsPerson
Amateur Database Programmer {:o)

I'm an Access97 user, so all posted code samples are also Access97- based
unless otherwise noted.

================================================== ========================

"Mary" <mmcgilliv...@msn.comwrote in message

news:11*********************@o5g2000hsb.googlegrou ps.com...
On Apr 10, 6:43 pm, "Mary" <mmcgilliv...@msn.comwrote:
On Apr 10, 5:23 pm, "Queezy" <que...@gmail.comwrote:
On Apr 10, 3:28 pm, "Mary" <mmcgilliv...@msn.comwrote:
I'll pulling my hair out on this one and would be so appreciative of
any help.
I am creating a data entry form to enter results of a student survey.
There are 40 questions on the survey. The first 7 have to do with
respondent information like grade, class and age. I have those in a
table with a PK of RespondentId, which is autonumbered. Questions
8-40
all have the same format. For these questions I have a table set up
with the respondentID as the FK, and a "questionnumber" and "answer"
field.
My main form has the respondent info on it. I have a tabular subform
for the remaining questions, with only the fields "questionnumber"
and
"answer" on it. Here's my problem: I want the numbers 8 thru 40 to
automatically populate on this form, so only the answer to the
question needs to be input.How do I best go about doing so? I tried
setting up the default value of the "questionnumber" field to:
=1+DMax("questionnumber","tblStudentSurveyAnswers" ,"respondentid=
forms!frmStudentSurvey!respondentID"). I got close, but the number
repeats once before incrementing.
Any ideas?
TIA,
Mary
Took me longer than I thought to come up with this, sorry.
Put this in your forms On Current. And to clarify
tblStudentSurveyAnswers Subform is the name of my subform, yours may
be different. Hope it works for you :)
Private Sub Form_Current()
Dim rsClone As Recordset
Dim db As Database
Set db = CurrentDb()
Set rsClone = Forms![frmStudentSurvey]![tblStudentSurveyAnswers
Subform].Form.RecordsetClone
If rsClone.RecordCount = 0 Then
For i = 8 To 40
db.Execute "Insert Into tblStudentSurveyAnswers
([RespondentID], [questionnumber]) Values('" & Me![RespondentID] & "',
'" & i & "')"
Next i
End If
Set rsClone = Nothing
Me.Refresh
End Sub- Hide quoted text -
- Show quoted text -
Thank you so much for taking the time to help me with this!
I've pasted your code and I'm almost there. The subform is not
populating until I advance to the next record using the navigation bar
and then come back to it. What am I missing?
Mary- Hide quoted text -
- Show quoted text -
To clarify my last post - The subform is not populating until I
advance the main form to the next record and come back to it. Then it
works great!- Hide quoted text -

- Show quoted text -
Don,

Thanks for taking the time to help me with this.

Here is what my code looks like now:

Private Sub Form_Current()
Dim rsClone As Recordset
Dim db As Database
Set db = CurrentDb()
Set rsClone = Forms![frmStudentSurvey]!
[fsubStudentSurvey].Form.RecordsetClone
Dim MyID
MyID = Me![RespondentId]
With rsClone
If rsClone.RecordCount = 0 Then
For i = 8 To 40

.AddNew
!RespondentId = MyID
!questionnumber = i
.Update
.Bookmark = .LastModified
Me![fsubStudentSurvey].Form.Bookmark = .Bookmark
Next i
End If
.Close
End With
Set rsClone = Nothing
Set db = Nothing
Me.Refresh
End Sub

It errors out as soon soon as I try to add a record. It errors on the
".Update" line; run-time error '3058', index or primary key cannot
contain a null value, which makes sense since the autonumbered
"repondentid" on the main form has not been populated yet. Should I
put this code somewhere else?

Mary

Apr 11 '07 #7
On Apr 11, 8:49 am, "Mary" <mmcgilliv...@msn.comwrote:
On Apr 11, 12:34 am, "Don Leverton"

<leveriteNoJunkM...@telusplanet.netwrote:
Hmmm...
My thoughts are that you are working with the recordset of the subform
already ... so why bother to insert records using an "INSERT INTO" SQL
statement. I also think that using the .LastModified and Bookmarking will
cause the subform to show the progress of the inserted records.
I'm going to use " '///Rev/// " on the lines that I have revised or added.
(Be advised that this has NOT been tested.)
============================
Private Sub Form_Current()
Dim rsClone As Recordset
Dim db As Database
Set db = CurrentDb()
Set rsClone =
Forms![frmStudentSurvey]![tblStudentSurveyAnswersSubform].Form.RecordsetClo**ne
Dim MyID '///Rev///
MyID = Me![RespondentID] '///Rev///
With rsClone '///Rev///
If rsClone.RecordCount = 0 Then
For i = 8 To 40
'///Rev/// db.Execute "Insert Into
tblStudentSurveyAnswers([RespondentID], [questionnumber]) Values('" &
Me![RespondentID] & "', '" & i & "')"
.AddNew '///Rev///
!RespondentID = MyID '///Rev///
!QuestionNumber = i '///Rev///
.Update '///Rev///
.Bookmark = .LastModified '///Rev///
Me![tblStudentSurveyAnswersSubform].Form.Bookmark = .Bookmark
'///Rev///
Next i
End If
.Close '///Rev///
End With
Set rsClone = Nothing
Set db = Nothing '///Rev///
Me.Refresh
End Sub
============================
--
--
HTH,
Don
=============================
E-Mail (if you must) My.N...@Telus.net
Disclaimer:
Professional PartsPerson
Amateur Database Programmer {:o)
I'm an Access97 user, so all posted code samples are also Access97- based
unless otherwise noted.
================================================== ========================
"Mary" <mmcgilliv...@msn.comwrote in message
news:11*********************@o5g2000hsb.googlegrou ps.com...
On Apr 10, 6:43 pm, "Mary" <mmcgilliv...@msn.comwrote:
>On Apr 10, 5:23 pm, "Queezy" <que...@gmail.comwrote:
On Apr 10, 3:28 pm, "Mary" <mmcgilliv...@msn.comwrote:
I'll pulling my hair out on this one and would be so appreciative of
any help.
I am creating a data entry form to enter results of a student survey.
There are 40 questions on the survey. The first 7 have to do with
respondent information like grade, class and age. I have those in a
table with a PK of RespondentId, which is autonumbered. Questions
8-40
all have the same format. For these questions I have a table setup
with the respondentID as the FK, and a "questionnumber" and "answer"
field.
My main form has the respondent info on it. I have a tabular subform
for the remaining questions, with only the fields "questionnumber"
and
"answer" on it. Here's my problem: I want the numbers 8 thru 40 to
automatically populate on this form, so only the answer to the
question needs to be input.How do I best go about doing so? I tried
setting up the default value of the "questionnumber" field to:
=1+DMax("questionnumber","tblStudentSurveyAnswers" ,"respondentid =
forms!frmStudentSurvey!respondentID"). I got close, but the number
repeats once before incrementing.
Any ideas?
TIA,
Mary
Took me longer than I thought to come up with this, sorry.
Put this in your forms On Current. And to clarify
tblStudentSurveyAnswers Subform is the name of my subform, yours may
be different. Hope it works for you :)
Private Sub Form_Current()
Dim rsClone As Recordset
Dim db As Database
Set db = CurrentDb()
Set rsClone = Forms![frmStudentSurvey]![tblStudentSurveyAnswers
Subform].Form.RecordsetClone
If rsClone.RecordCount = 0 Then
For i = 8 To 40
db.Execute "Insert Into tblStudentSurveyAnswers
([RespondentID], [questionnumber]) Values('" & Me![RespondentID] &"',
'" & i & "')"
Next i
End If
Set rsClone = Nothing
Me.Refresh
End Sub- Hide quoted text -
- Show quoted text -
>Thank you so much for taking the time to help me with this!
>I've pasted your code and I'm almost there. The subform is not
>populating until I advance to the next record using the navigation bar
>and then come back to it. What am I missing?
>Mary- Hide quoted text -
>- Show quoted text -
To clarify my last post - The subform is not populating until I
advance the main form to the next record and come back to it. Then it
works great!- Hide quoted text -
- Show quoted text -

Don,

Thanks for taking the time to help me with this.

Here is what my code looks like now:

Private Sub Form_Current()
Dim rsClone As Recordset
Dim db As Database

Set db = CurrentDb()
Set rsClone = Forms![frmStudentSurvey]!
[fsubStudentSurvey].Form.RecordsetClone

Dim MyID
MyID = Me![RespondentId]

With rsClone
If rsClone.RecordCount = 0 Then
For i = 8 To 40

.AddNew
!RespondentId = MyID
!questionnumber = i
.Update
.Bookmark = .LastModified
Me![fsubStudentSurvey].Form.Bookmark = .Bookmark
Next i
End If
.Close
End With
Set rsClone = Nothing
Set db = Nothing
Me.Refresh
End Sub

It errors out as soon soon as I try to add a record. It errors on the
".Update" line; run-time error '3058', index or primary key cannot
contain a null value, which makes sense since the autonumbered
"repondentid" on the main form has not been populated yet. Should I
put this code somewhere else?

Mary- Hide quoted text -

- Show quoted text -
Mary,

Don's code works for me, as does my original code.
You do have this code in your main form (frmStudentSurvey) OnCurrent
event, right?

Apr 11 '07 #8
On Apr 11, 9:12 am, "Queezy" <que...@gmail.comwrote:
On Apr 11, 8:49 am, "Mary" <mmcgilliv...@msn.comwrote:


On Apr 11, 12:34 am, "Don Leverton"
<leveriteNoJunkM...@telusplanet.netwrote:
Hmmm...
My thoughts are that you are working with the recordset of the subform
already ... so why bother to insert records using an "INSERT INTO" SQL
statement. I also think that using the .LastModified and Bookmarking will
cause the subform to show the progress of the inserted records.
I'm going to use " '///Rev/// " on the lines that I have revised or added.
(Be advised that this has NOT been tested.)
============================
Private Sub Form_Current()
Dim rsClone As Recordset
Dim db As Database
Set db = CurrentDb()
Set rsClone =
Forms![frmStudentSurvey]![tblStudentSurveyAnswersSubform].Form.RecordsetClo***ne
Dim MyID '///Rev///
MyID = Me![RespondentID] '///Rev///
With rsClone '///Rev///
If rsClone.RecordCount = 0 Then
For i = 8 To 40
'///Rev/// db.Execute "Insert Into
tblStudentSurveyAnswers([RespondentID], [questionnumber]) Values('" &
Me![RespondentID] & "', '" & i & "')"
.AddNew '///Rev///
!RespondentID = MyID '///Rev///
!QuestionNumber = i '///Rev///
.Update '///Rev///
.Bookmark = .LastModified '///Rev///
Me![tblStudentSurveyAnswersSubform].Form.Bookmark = .Bookmark
'///Rev///
Next i
End If
.Close '///Rev///
End With
Set rsClone = Nothing
Set db = Nothing '///Rev///
Me.Refresh
End Sub
============================
--
--
HTH,
Don
=============================
E-Mail (if you must) My.N...@Telus.net
Disclaimer:
Professional PartsPerson
Amateur Database Programmer {:o)
I'm an Access97 user, so all posted code samples are also Access97- based
unless otherwise noted.
================================================== ========================
"Mary" <mmcgilliv...@msn.comwrote in message
>news:11*********************@o5g2000hsb.googlegro ups.com...
On Apr 10, 6:43 pm, "Mary" <mmcgilliv...@msn.comwrote:
On Apr 10, 5:23 pm, "Queezy" <que...@gmail.comwrote:
On Apr 10, 3:28 pm, "Mary" <mmcgilliv...@msn.comwrote:
I'll pulling my hair out on this one and would be so appreciative of
any help.
I am creating a data entry form to enter results of a student survey.
There are 40 questions on the survey. The first 7 have to do with
respondent information like grade, class and age. I have thosein a
table with a PK of RespondentId, which is autonumbered. Questions
8-40
all have the same format. For these questions I have a table set up
with the respondentID as the FK, and a "questionnumber" and "answer"
field.
My main form has the respondent info on it. I have a tabular subform
for the remaining questions, with only the fields "questionnumber"
and
"answer" on it. Here's my problem: I want the numbers 8 thru 40 to
automatically populate on this form, so only the answer to the
question needs to be input.How do I best go about doing so? I tried
setting up the default value of the "questionnumber" field to:
=1+DMax("questionnumber","tblStudentSurveyAnswers" ,"respondentid =
forms!frmStudentSurvey!respondentID"). I got close, but the number
repeats once before incrementing.
Any ideas?
TIA,
Mary
Took me longer than I thought to come up with this, sorry.
Put this in your forms On Current. And to clarify
tblStudentSurveyAnswers Subform is the name of my subform, yoursmay
be different. Hope it works for you :)
Private Sub Form_Current()
Dim rsClone As Recordset
Dim db As Database
Set db = CurrentDb()
Set rsClone = Forms![frmStudentSurvey]![tblStudentSurveyAnswers
Subform].Form.RecordsetClone
If rsClone.RecordCount = 0 Then
For i = 8 To 40
db.Execute "Insert Into tblStudentSurveyAnswers
([RespondentID], [questionnumber]) Values('" & Me![RespondentID]& "',
'" & i & "')"
Next i
End If
Set rsClone = Nothing
Me.Refresh
End Sub- Hide quoted text -
- Show quoted text -
Thank you so much for taking the time to help me with this!
I've pasted your code and I'm almost there. The subform is not
populating until I advance to the next record using the navigationbar
and then come back to it. What am I missing?
Mary- Hide quoted text -
- Show quoted text -
To clarify my last post - The subform is not populating until I
advance the main form to the next record and come back to it. Then it
works great!- Hide quoted text -
- Show quoted text -
Don,
Thanks for taking the time to help me with this.
Here is what my code looks like now:
Private Sub Form_Current()
Dim rsClone As Recordset
Dim db As Database
Set db = CurrentDb()
Set rsClone = Forms![frmStudentSurvey]!
[fsubStudentSurvey].Form.RecordsetClone
Dim MyID
MyID = Me![RespondentId]
With rsClone
If rsClone.RecordCount = 0 Then
For i = 8 To 40
.AddNew
!RespondentId = MyID
!questionnumber = i
.Update
.Bookmark = .LastModified
Me![fsubStudentSurvey].Form.Bookmark = .Bookmark
Next i
End If
.Close
End With
Set rsClone = Nothing
Set db = Nothing
Me.Refresh
End Sub
It errors out as soon soon as I try to add a record. It errors on the
".Update" line; run-time error '3058', index or primary key cannot
contain a null value, which makes sense since the autonumbered
"repondentid" on the main form has not been populated yet. Should I
put this code somewhere else?
Mary- Hide quoted text -
- Show quoted text -

Mary,

Don's code works for me, as does my original code.
You do have this code in your main form (frmStudentSurvey) OnCurrent
event, right?- Hide quoted text -

- Show quoted text -
yes

Apr 11 '07 #9
On Apr 11, 9:20 am, "Mary" <mmcgilliv...@msn.comwrote:
On Apr 11, 9:12 am, "Queezy" <que...@gmail.comwrote:


On Apr 11, 8:49 am, "Mary" <mmcgilliv...@msn.comwrote:
On Apr 11, 12:34 am, "Don Leverton"
<leveriteNoJunkM...@telusplanet.netwrote:
Hmmm...
My thoughts are that you are working with the recordset of the subform
already ... so why bother to insert records using an "INSERT INTO" SQL
statement. I also think that using the .LastModified and Bookmarking will
cause the subform to show the progress of the inserted records.
I'm going to use " '///Rev/// " on the lines that I have revised oradded.
(Be advised that this has NOT been tested.)
============================
Private Sub Form_Current()
Dim rsClone As Recordset
Dim db As Database
Set db = CurrentDb()
Set rsClone =
Forms![frmStudentSurvey]![tblStudentSurveyAnswersSubform].Form.RecordsetClo****ne
Dim MyID '///Rev///
MyID = Me![RespondentID] '///Rev///
With rsClone '///Rev///
If rsClone.RecordCount = 0 Then
For i = 8 To 40
'///Rev/// db.Execute "Insert Into
tblStudentSurveyAnswers([RespondentID], [questionnumber]) Values('"&
Me![RespondentID] & "', '" & i & "')"
.AddNew '///Rev///
!RespondentID = MyID '///Rev///
!QuestionNumber = i '///Rev///
.Update '///Rev///
.Bookmark = .LastModified '///Rev///
Me![tblStudentSurveyAnswersSubform].Form.Bookmark = .Bookmark
'///Rev///
Next i
End If
.Close '///Rev///
End With
Set rsClone = Nothing
Set db = Nothing '///Rev///
Me.Refresh
End Sub
============================
--
--
HTH,
Don
=============================
E-Mail (if you must) My.N...@Telus.net
Disclaimer:
Professional PartsPerson
Amateur Database Programmer {:o)
I'm an Access97 user, so all posted code samples are also Access97- based
unless otherwise noted.
================================================== ========================
"Mary" <mmcgilliv...@msn.comwrote in message
news:11*********************@o5g2000hsb.googlegrou ps.com...
On Apr 10, 6:43 pm, "Mary" <mmcgilliv...@msn.comwrote:
>On Apr 10, 5:23 pm, "Queezy" <que...@gmail.comwrote:
On Apr 10, 3:28 pm, "Mary" <mmcgilliv...@msn.comwrote:
I'll pulling my hair out on this one and would be so appreciative of
any help.
I am creating a data entry form to enter results of a student survey.
There are 40 questions on the survey. The first 7 have to dowith
respondent information like grade, class and age. I have those in a
table with a PK of RespondentId, which is autonumbered. Questions
8-40
all have the same format. For these questions I have a tableset up
with the respondentID as the FK, and a "questionnumber" and "answer"
field.
My main form has the respondent info on it. I have a tabularsubform
for the remaining questions, with only the fields "questionnumber"
and
"answer" on it. Here's my problem: I want the numbers 8 thru40 to
automatically populate on this form, so only the answer to the
question needs to be input.How do I best go about doing so? I tried
setting up the default value of the "questionnumber" field to:
=1+DMax("questionnumber","tblStudentSurveyAnswers" ,"respondentid =
forms!frmStudentSurvey!respondentID"). I got close, but the number
repeats once before incrementing.
Any ideas?
TIA,
Mary
Took me longer than I thought to come up with this, sorry.
Put this in your forms On Current. And to clarify
tblStudentSurveyAnswers Subform is the name of my subform, yours may
be different. Hope it works for you :)
Private Sub Form_Current()
Dim rsClone As Recordset
Dim db As Database
Set db = CurrentDb()
Set rsClone = Forms![frmStudentSurvey]![tblStudentSurveyAnswers
Subform].Form.RecordsetClone
If rsClone.RecordCount = 0 Then
For i = 8 To 40
db.Execute "Insert Into tblStudentSurveyAnswers
([RespondentID], [questionnumber]) Values('" & Me![RespondentID] & "',
'" & i & "')"
Next i
End If
Set rsClone = Nothing
Me.Refresh
End Sub- Hide quoted text -
- Show quoted text -
>Thank you so much for taking the time to help me with this!
>I've pasted your code and I'm almost there. The subform is not
>populating until I advance to the next record using the navigation bar
>and then come back to it. What am I missing?
>Mary- Hide quoted text -
>- Show quoted text -
To clarify my last post - The subform is not populating until I
advance the main form to the next record and come back to it. Then it
works great!- Hide quoted text -
- Show quoted text -
Don,
Thanks for taking the time to help me with this.
Here is what my code looks like now:
Private Sub Form_Current()
Dim rsClone As Recordset
Dim db As Database
Set db = CurrentDb()
Set rsClone = Forms![frmStudentSurvey]!
[fsubStudentSurvey].Form.RecordsetClone
Dim MyID
MyID = Me![RespondentId]
With rsClone
If rsClone.RecordCount = 0 Then
For i = 8 To 40
.AddNew
!RespondentId = MyID
!questionnumber = i
.Update
.Bookmark = .LastModified
Me![fsubStudentSurvey].Form.Bookmark = .Bookmark
Next i
End If
.Close
End With
Set rsClone = Nothing
Set db = Nothing
Me.Refresh
End Sub
It errors out as soon soon as I try to add a record. It errors on the
".Update" line; run-time error '3058', index or primary key cannot
contain a null value, which makes sense since the autonumbered
"repondentid" on the main form has not been populated yet. Should I
put this code somewhere else?
Mary- Hide quoted text -
- Show quoted text -
Mary,
Don's code works for me, as does my original code.
You do have this code in your main form (frmStudentSurvey) OnCurrent
event, right?- Hide quoted text -
- Show quoted text -

yes- Hide quoted text -

- Show quoted text -

Mary,

I just read your one post about the respondentid not being populated.
I didn't even think about the record not existing in the main table
that holds the respondent's info. You need the respondent populated
in your respondent info table before this can run. Off the top of my
head, you could make a button, and you would have to enter the the
respondent's info first, then click this button, which will add the
info to your respondents table, then execute this new code.
Here's what it would look like- * note the me.refresh is the only
addition
Private Sub Command10_Click()

Me.Refresh

Dim db As Database
Set db = CurrentDb()
Set rsClone = Forms![frmStudentSurvey]![tblStudentSurveyAnswers
Subform].Form.RecordsetClone
Dim MyID
MyID = Me![RespondentID]

With rsClone
If rsClone.RecordCount = 0 Then
For i = 8 To 40
.AddNew
!RespondentID = MyID
!questionnumber = i
.Update
.Bookmark = .LastModified
Me![tblStudentSurveyAnswers Subform].Form.Bookmark
= .Bookmark
Next i
End If
.Close
End With
Set rsClone = Nothing
Set db = Nothing
Me.Refresh

End Sub

Apr 11 '07 #10
On Apr 11, 10:07 am, "Queezy" <que...@gmail.comwrote:
On Apr 11, 9:20 am, "Mary" <mmcgilliv...@msn.comwrote:


On Apr 11, 9:12 am, "Queezy" <que...@gmail.comwrote:
On Apr 11, 8:49 am, "Mary" <mmcgilliv...@msn.comwrote:
On Apr 11, 12:34 am, "Don Leverton"
<leveriteNoJunkM...@telusplanet.netwrote:
Hmmm...
My thoughts are that you are working with the recordset of the subform
already ... so why bother to insert records using an "INSERT INTO" SQL
statement. I also think that using the .LastModified and Bookmarking will
cause the subform to show the progress of the inserted records.
I'm going to use " '///Rev/// " on the lines that I have revised or added.
(Be advised that this has NOT been tested.)
============================
Private Sub Form_Current()
Dim rsClone As Recordset
Dim db As Database
Set db = CurrentDb()
Set rsClone =
Forms![frmStudentSurvey]![tblStudentSurveyAnswersSubform].Form.RecordsetClo*****ne
Dim MyID '///Rev///
MyID = Me![RespondentID] '///Rev///
With rsClone '///Rev///
If rsClone.RecordCount = 0 Then
For i = 8 To 40
'///Rev/// db.Execute "Insert Into
tblStudentSurveyAnswers([RespondentID], [questionnumber]) Values('" &
Me![RespondentID] & "', '" & i & "')"
.AddNew '///Rev///
!RespondentID = MyID '///Rev///
!QuestionNumber = i '///Rev///
.Update '///Rev///
.Bookmark = .LastModified '///Rev///
Me![tblStudentSurveyAnswersSubform].Form.Bookmark =.Bookmark
'///Rev///
Next i
End If
.Close '///Rev///
End With
Set rsClone = Nothing
Set db = Nothing '///Rev///
Me.Refresh
End Sub
============================
--
--
HTH,
Don
=============================
E-Mail (if you must) My.N...@Telus.net
Disclaimer:
Professional PartsPerson
Amateur Database Programmer {:o)
I'm an Access97 user, so all posted code samples are also Access97- based
unless otherwise noted.
================================================== ========================
"Mary" <mmcgilliv...@msn.comwrote in message
>news:11*********************@o5g2000hsb.googlegro ups.com...
On Apr 10, 6:43 pm, "Mary" <mmcgilliv...@msn.comwrote:
On Apr 10, 5:23 pm, "Queezy" <que...@gmail.comwrote:
On Apr 10, 3:28 pm, "Mary" <mmcgilliv...@msn.comwrote:
I'll pulling my hair out on this one and would be so appreciative of
any help.
I am creating a data entry form to enter results of a student survey.
There are 40 questions on the survey. The first 7 have to do with
respondent information like grade, class and age. I have those in a
table with a PK of RespondentId, which is autonumbered. Questions
8-40
all have the same format. For these questions I have a table set up
with the respondentID as the FK, and a "questionnumber" and "answer"
field.
My main form has the respondent info on it. I have a tabular subform
for the remaining questions, with only the fields "questionnumber"
and
"answer" on it. Here's my problem: I want the numbers 8 thru 40 to
automatically populate on this form, so only the answer tothe
question needs to be input.How do I best go about doing so? I tried
setting up the default value of the "questionnumber" fieldto:
=1+DMax("questionnumber","tblStudentSurveyAnswers" ,"respondentid =
forms!frmStudentSurvey!respondentID"). I got close, but the number
repeats once before incrementing.
Any ideas?
TIA,
Mary
Took me longer than I thought to come up with this, sorry.
Put this in your forms On Current. And to clarify
tblStudentSurveyAnswers Subform is the name of my subform, yours may
be different. Hope it works for you :)
Private Sub Form_Current()
Dim rsClone As Recordset
Dim db As Database
Set db = CurrentDb()
Set rsClone = Forms![frmStudentSurvey]![tblStudentSurveyAnswers
Subform].Form.RecordsetClone
If rsClone.RecordCount = 0 Then
For i = 8 To 40
db.Execute "Insert Into tblStudentSurveyAnswers
([RespondentID], [questionnumber]) Values('" & Me![RespondentID] & "',
'" & i & "')"
Next i
End If
Set rsClone = Nothing
Me.Refresh
End Sub- Hide quoted text -
- Show quoted text -
Thank you so much for taking the time to help me with this!
I've pasted your code and I'm almost there. The subform is not
populating until I advance to the next record using the navigation bar
and then come back to it. What am I missing?
Mary- Hide quoted text -
- Show quoted text -
To clarify my last post - The subform is not populating until I
advance the main form to the next record and come back to it. Then it
works great!- Hide quoted text -
- Show quoted text -
Don,
Thanks for taking the time to help me with this.
Here is what my code looks like now:
Private Sub Form_Current()
Dim rsClone As Recordset
Dim db As Database
Set db = CurrentDb()
Set rsClone = Forms![frmStudentSurvey]!
[fsubStudentSurvey].Form.RecordsetClone
Dim MyID
MyID = Me![RespondentId]
With rsClone
If rsClone.RecordCount = 0 Then
For i = 8 To 40
.AddNew
!RespondentId = MyID
!questionnumber = i
.Update
.Bookmark = .LastModified
Me![fsubStudentSurvey].Form.Bookmark = .Bookmark
Next i
End If
.Close
End With
Set rsClone = Nothing
Set db = Nothing
Me.Refresh
End Sub
It errors out as soon soon as I try to add a record. It errors on the
".Update" line; run-time error '3058', index or primary key cannot
contain a null value, which makes sense since the autonumbered
"repondentid" on the main form has not been populated yet. Should I
put this code somewhere else?
Mary- Hide quoted text -
- Show quoted text -
Mary,
Don's code works for me, as does my original code.
You do have this code in your main form (frmStudentSurvey) OnCurrent
event, right?- Hide quoted text -
- Show quoted text -
yes- Hide quoted text -
- Show quoted text -

Mary,

I just read your one post about the respondentid not being populated.
I didn't even think about the record not existing in the main table
that holds the respondent's info. You need the respondent populated
in your respondent info table before this can run. Off the top of my
head, you could make a button, and you would have to enter the the
respondent's info first, then click this button, which will add the
info to your respondents table, then execute this new code.
Here's what it would look like- * note the me.refresh is the only
addition

Private Sub Command10_Click()

Me.Refresh

Dim db As Database
Set db = CurrentDb()
Set rsClone = Forms![frmStudentSurvey]![tblStudentSurveyAnswers
Subform].Form.RecordsetClone

Dim MyID
MyID = Me![RespondentID]

With rsClone
If rsClone.RecordCount = 0 Then
For i = 8 To 40
.AddNew
!RespondentID = MyID
!questionnumber = i
.Update
.Bookmark = .LastModified
Me![tblStudentSurveyAnswers Subform].Form.Bookmark
= .Bookmark
Next i
End If
.Close
End With
Set rsClone = Nothing
Set db = Nothing
Me.Refresh

End Sub- Hide quoted text -

- Show quoted text -
Thanks guys! It works!

I moved Don's code to the after-update event of question number 7, so
that as soon as question 7 is entered the subform populates. I also
added a button next to question 7 with the same code in case the
respondent didn't answer number 7.

I REALLY appreciate the help.:)

Mary
Apr 11 '07 #11
I hadn't understood the part about the Repondents not being pre-existant
either.
Is this always the case, or do you need to add these questions for existing
respondents as well?
If you have a mix of new and existing, you could test to see if it is a new
or existing record.

I think that the best way to handle this is to define the procedure that
adds these records as an external procedure, then CALL it from within
different events.
Something like this:

==========================================
Private Sub sFillQuestions

Me.Dirty = False 'Save the current form record in order to avoid error
#3058 . IMHO, this a better way of doing that than "Me.Refresh"

Private Sub Form_Current()
Dim rsClone As Recordset
Dim db As Database
Set db = CurrentDb()
Set rsClone = Me![fsubStudentSurvey].Form.RecordsetClone
Dim MyID
MyID = Me![RespondentId]
With rsClone
If rsClone.RecordCount = 0 Then
For i = 8 To 40

.AddNew
!RespondentId = MyID
!questionnumber = i
.Update
.Bookmark = .LastModified
Me![fsubStudentSurvey].Form.Bookmark = .Bookmark
Next i
End If
.Close
End With
Set rsClone = Nothing
Set db = Nothing
Me.Refresh
End Sub
==========================================
Private Sub Form_Current()
'This step should look after the pre-existing respondents that DO NOT have
survey questions yet ...
If Me.NewRecord = False And
Me![fsubStudentSurvey].Form.RecordsetClone.RecordCount = 0 Then
sFillQuestions
Else
Exit Sub
End If

Private Sub Form_BeforeInsert()
'We know that .NewRecord HAS to be true for this event to "fire" ... so...
If Me![fsubStudentSurvey].Form.RecordsetClone.RecordCount = 0 Then
sFillQuestions
End If
EndSub

--
HTH,
(Let us know)
Don
"Queezy" <qu****@gmail.comwrote in message
news:11**********************@d57g2000hsg.googlegr oups.com...

<previous threads snipped>

Mary,

I just read your one post about the respondentid not being populated.
I didn't even think about the record not existing in the main table
that holds the respondent's info. You need the respondent populated
in your respondent info table before this can run. Off the top of my
head, you could make a button, and you would have to enter the the
respondent's info first, then click this button, which will add the
info to your respondents table, then execute this new code.
Here's what it would look like- * note the me.refresh is the only
addition
Private Sub Command10_Click()

Me.Refresh

Dim db As Database
Set db = CurrentDb()
Set rsClone = Forms![frmStudentSurvey]![tblStudentSurveyAnswers
Subform].Form.RecordsetClone
Dim MyID
MyID = Me![RespondentID]

With rsClone
If rsClone.RecordCount = 0 Then
For i = 8 To 40
.AddNew
!RespondentID = MyID
!questionnumber = i
.Update
.Bookmark = .LastModified
Me![tblStudentSurveyAnswers Subform].Form.Bookmark
= .Bookmark
Next i
End If
.Close
End With
Set rsClone = Nothing
Set db = Nothing
Me.Refresh

End Sub
Apr 11 '07 #12
Hi Mary,
I didn't see this until after my reply.
"Queezy" deserves most of the credit, but I'm glad to hear that you got it
sorted out.

My suggestion to write the code as an external sub and call it from differnt
events would also work for the method you describe here.
I do think that taking the decision out of the hands of the user (using the
OnCurrent and BeforeInsert methods in my last post might still be a good
idea.
You just never know what a user will or will not do. :)

Don

.... "Mary" <mm**********@msn.comwrote in message
news:11*********************@e65g2000hsc.googlegro ups.com...
On Apr 11, 10:07 am, "Queezy" <que...@gmail.comwrote:
On Apr 11, 9:20 am, "Mary" <mmcgilliv...@msn.comwrote:
<snip>

Thanks guys! It works!

I moved Don's code to the after-update event of question number 7, so
that as soon as question 7 is entered the subform populates. I also
added a button next to question 7 with the same code in case the
respondent didn't answer number 7.

I REALLY appreciate the help.:)

Mary

Apr 11 '07 #13
On Apr 11, 12:33 pm, "Don Leverton" <My.N...@Telus.Netwrote:
Hi Mary,
I didn't see this until after my reply.
"Queezy" deserves most of the credit, but I'm glad to hear that you got it
sorted out.

My suggestion to write the code as an external sub and call it from differnt
events would also work for the method you describe here.
I do think that taking the decision out of the hands of the user (using the
OnCurrent and BeforeInsert methods in my last post might still be a good
idea.
You just never know what a user will or will not do. :)

Don

... "Mary" <mmcgilliv...@msn.comwrote in messagenews:11*********************@e65g2000hsc.go oglegroups.com...
On Apr 11, 10:07 am, "Queezy" <que...@gmail.comwrote:On Apr 11, 9:20 am, "Mary" <mmcgilliv...@msn.comwrote:

<snip>

Thanks guys! It works!

I moved Don's code to the after-update event of question number 7, so
that as soon as question 7 is entered the subform populates. I also
added a button next to question 7 with the same code in case the
respondent didn't answer number 7.

I REALLY appreciate the help.:)

Mary
Don,

I had a nasty migraine so it's taken awhile to get back to you...

I appreciate what you're saying about the users. In this case it's
just one user entering one batch of surveys and that's it. All the
records will always be new. The responders of the survey are actually
anonymous - the autonumer id is just so I can relate them to the
answers table. So I thing I'm good with the way I have it now.

Thanks again for your help.

Mary

Apr 11 '07 #14

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

Similar topics

2
by: Lamine Darbouche | last post by:
Can anybody help? I need to have three list boxes automatically populating each other, (ie when region is selected from the first listbox, it will populate automatically the second one which is...
2
by: Danny J. Lesandrini | last post by:
I searched Google but couldn't find any reference to this one, though I've observed the behavior before. The current case is where I select a value in a combo box, which has a Long Integer as...
0
by: Tim | last post by:
Hello, I'm using Access 2000 and I have a main form with a large subform. When tabbing through the fields on the main from, the screen automatically tabs down, as I like, but when I tab into the...
9
by: deadlyhunk | last post by:
hi , I created a database using Access 2000 with 2 tables and 2 forms. one is main form and the other subform with ID and Name as common fields. I have a command button in main form which is used...
0
by: Mark | last post by:
Hi, I'm new to ASP.Net, but not to c#, so I'm finding some things a little wierd in this internet based world, especially passing data from page to page. I have created a UserControl to...
1
by: Paul Glavey | last post by:
Hello anyone any idea how to do this. The problem I am having has to do with Continuous Forms. In the header of the form I have 4 Combo boxes. For now lets just work on one combo box. The combo...
1
by: bbatson | last post by:
Hello, I have two tables that are feeding a form/subform relationship. The first table, called "Tbl_Projects" lists a variety of projects taken on by a department. A second table called...
1
by: ITHELP85 | last post by:
So I am working on this project, where I have an ITEM_PURCHASE table and an WAREHOUSE table I want users to be able to input data into the ITEM_PURCHASE table thru a form and the WAREHOUSE table will...
1
by: ITHELP85 | last post by:
using SQL Server 2005 I have a table SALES_ITEM, users should be able to input the Primary Keys (ItemNumberSK and InvoiceNumber), and Qty. I want the ItemName and UnitPrice fields to update...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...
0
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,...
0
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...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.