Entering Pictures in a form geting an error

D

desireemm

Hi all I have a table called Pictures_tbl that has a one to many relationship
with a parent table called People_tbl. Every time I enter a picture into the
form where the Pictures_tbl is I get this error message. Can anyone help.


This error can occur if the data you are attempting to save is saving to a
Microsoft SQL Server 7.0 or earlier database and the RecordSource for the
subform is using an SQL select statement with fields pulled directly from the
source table, and the table is using an Identity field set as its primary key.
To avoid this problem set the RecordSource property of the subform to a
table or a query.
-Or-
Upgrade to a newer version of Microsoft SQL Server.
 
G

Gina Whipp

desireemm,

We're going to need a little help here...

Access version?
Are you, in fact, using SQL Server 7.0 or earlier or another version?
Are you storing the pictures in the database or rather trying to store them
in the database?
What is the RecordSource of the form?

....that should get us started.

--
Gina Whipp

"I feel I have been denied critical, need to know, information!" - Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm
 
D

desireemm

I'm sorry Its Access 2007 with SQL server 2005 as the engine. Yes the
pictures are stored in a table which only stores pics
 
D

desireemm

I hope I am understanding you. this is the record source
Picture is an Image, PicID is Interget (Identiy/SqL Autonumber) only parent
is nvarchar (50)

SELECT Picture, PicID, PeopleID, [Parent ID] FROM TanfPictures_tbl
 
G

Gina Whipp

Okay, that s not what I want...

Go to the form which you use to enter the pictures (in the Access database)
Go to Design View of that form and pull up the properties
In the Properties section at the top it will RecordSource... copy and paste
that here.

--
Gina Whipp

"I feel I have been denied critical, need to know, information!" - Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm

desireemm said:
I hope I am understanding you. this is the record source
Picture is an Image, PicID is Interget (Identiy/SqL Autonumber) only
parent
is nvarchar (50)

SELECT Picture, PicID, PeopleID, [Parent ID] FROM TanfPictures_tbl

Gina Whipp said:
And the RecordSoirce of the form?

--
Gina Whipp

"I feel I have been denied critical, need to know, information!" -
Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm
 
D

desireemm

ok Here is the Record source

SELECT [Parent ID], [Family ID], [Referral Location], [Referral Date],
[Registration Date], [Student First Name], [Student SS#], [Student Last
Name], [Student Sex], Grade, Age, [Student Date of Birth], [Event ID],
TANFreferral, TypeOfParticipant, RequiredHours, SpecialInstructions,
Adult_Child, State, SSID, PeopleID, TANF, ServiceArea, Weekly, Month,
ReferralStatus, TanfStaffMakeReferal, Message, Phone, StateStudentID,
TribalAfflilation, StudentCity, StudentState, StudentZip, StudentAddress,
DateReleased, StudentRelease, ParentRelease, ScannedDocuments, EmailAddress,
Enrollmentstatus, MaritalStatus, Vetran, TanfSpouseName, TanfSpouseSocial,
PntID, Pictures FROM TANFParticipants_view

Gina Whipp said:
Okay, that s not what I want...

Go to the form which you use to enter the pictures (in the Access database)
Go to Design View of that form and pull up the properties
In the Properties section at the top it will RecordSource... copy and paste
that here.

--
Gina Whipp

"I feel I have been denied critical, need to know, information!" - Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm

desireemm said:
I hope I am understanding you. this is the record source
Picture is an Image, PicID is Interget (Identiy/SqL Autonumber) only
parent
is nvarchar (50)

SELECT Picture, PicID, PeopleID, [Parent ID] FROM TanfPictures_tbl

Gina Whipp said:
And the RecordSoirce of the form?

--
Gina Whipp

"I feel I have been denied critical, need to know, information!" -
Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm

I'm sorry Its Access 2007 with SQL server 2005 as the engine. Yes the
pictures are stored in a table which only stores pics

:

desireemm,

We're going to need a little help here...

Access version?
Are you, in fact, using SQL Server 7.0 or earlier or another version?
Are you storing the pictures in the database or rather trying to store
them
in the database?
What is the RecordSource of the form?

....that should get us started.

--
Gina Whipp

"I feel I have been denied critical, need to know, information!" -
Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm

Hi all I have a table called Pictures_tbl that has a one to many
relationship
with a parent table called People_tbl. Every time I enter a picture
into
the
form where the Pictures_tbl is I get this error message. Can anyone
help.


This error can occur if the data you are attempting to save is
saving
to a
Microsoft SQL Server 7.0 or earlier database and the RecordSource
for
the
subform is using an SQL select statement with fields pulled directly
from
the
source table, and the table is using an Identity field set as its
primary
key.
To avoid this problem set the RecordSource property of the subform
to a
table or a query.
-Or-
Upgrade to a newer version of Microsoft SQL Server.
 
G

Gina Whipp

desireemm,

Okay now the error message...

This error can occur if the data you are attempting to save is saving to a
Microsoft SQL Server 7.0 or earlier database and the RecordSource for the
subform is using an SQL select statement with fields pulled directly from
the
source table, and the table is using an Identity field set as its primary
key.
*****To avoid this problem set the RecordSource property of the subform to a
table or a query.*****

Because of your version of SQL Server you will need to turn you SELECT
statement into a QUERY. Make the QUERY the RecordSource of the form. To do
that...

1. Go back to Design View of the Form and return to the RecordSource and
click the elipse button [...].
2. Once that window open press the SAVE button and name your query and
save. Say "Yes" or "Okay" to all questions and try your insert picture
again.

--
Gina Whipp

"I feel I have been denied critical, need to know, information!" - Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm

desireemm said:
ok Here is the Record source

SELECT [Parent ID], [Family ID], [Referral Location], [Referral Date],
[Registration Date], [Student First Name], [Student SS#], [Student Last
Name], [Student Sex], Grade, Age, [Student Date of Birth], [Event ID],
TANFreferral, TypeOfParticipant, RequiredHours, SpecialInstructions,
Adult_Child, State, SSID, PeopleID, TANF, ServiceArea, Weekly, Month,
ReferralStatus, TanfStaffMakeReferal, Message, Phone, StateStudentID,
TribalAfflilation, StudentCity, StudentState, StudentZip, StudentAddress,
DateReleased, StudentRelease, ParentRelease, ScannedDocuments,
EmailAddress,
Enrollmentstatus, MaritalStatus, Vetran, TanfSpouseName, TanfSpouseSocial,
PntID, Pictures FROM TANFParticipants_view

Gina Whipp said:
Okay, that s not what I want...

Go to the form which you use to enter the pictures (in the Access
database)
Go to Design View of that form and pull up the properties
In the Properties section at the top it will RecordSource... copy and
paste
that here.

--
Gina Whipp

"I feel I have been denied critical, need to know, information!" -
Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm

desireemm said:
I hope I am understanding you. this is the record source
Picture is an Image, PicID is Interget (Identiy/SqL Autonumber) only
parent
is nvarchar (50)

SELECT Picture, PicID, PeopleID, [Parent ID] FROM TanfPictures_tbl

:

And the RecordSoirce of the form?

--
Gina Whipp

"I feel I have been denied critical, need to know, information!" -
Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm

I'm sorry Its Access 2007 with SQL server 2005 as the engine. Yes
the
pictures are stored in a table which only stores pics

:

desireemm,

We're going to need a little help here...

Access version?
Are you, in fact, using SQL Server 7.0 or earlier or another
version?
Are you storing the pictures in the database or rather trying to
store
them
in the database?
What is the RecordSource of the form?

....that should get us started.

--
Gina Whipp

"I feel I have been denied critical, need to know, information!" -
Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm

Hi all I have a table called Pictures_tbl that has a one to many
relationship
with a parent table called People_tbl. Every time I enter a
picture
into
the
form where the Pictures_tbl is I get this error message. Can
anyone
help.


This error can occur if the data you are attempting to save is
saving
to a
Microsoft SQL Server 7.0 or earlier database and the RecordSource
for
the
subform is using an SQL select statement with fields pulled
directly
from
the
source table, and the table is using an Identity field set as its
primary
key.
To avoid this problem set the RecordSource property of the
subform
to a
table or a query.
-Or-
Upgrade to a newer version of Microsoft SQL Server.
 
D

desireemm

it still didnt work, it does work if I make the picture form a subform and
enter pictures but it doesnnt work when I access it through a command button.


Gina Whipp said:
desireemm,

Okay now the error message...

This error can occur if the data you are attempting to save is saving to a
Microsoft SQL Server 7.0 or earlier database and the RecordSource for the
subform is using an SQL select statement with fields pulled directly from
the
source table, and the table is using an Identity field set as its primary
key.
*****To avoid this problem set the RecordSource property of the subform to a
table or a query.*****

Because of your version of SQL Server you will need to turn you SELECT
statement into a QUERY. Make the QUERY the RecordSource of the form. To do
that...

1. Go back to Design View of the Form and return to the RecordSource and
click the elipse button [...].
2. Once that window open press the SAVE button and name your query and
save. Say "Yes" or "Okay" to all questions and try your insert picture
again.

--
Gina Whipp

"I feel I have been denied critical, need to know, information!" - Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm

desireemm said:
ok Here is the Record source

SELECT [Parent ID], [Family ID], [Referral Location], [Referral Date],
[Registration Date], [Student First Name], [Student SS#], [Student Last
Name], [Student Sex], Grade, Age, [Student Date of Birth], [Event ID],
TANFreferral, TypeOfParticipant, RequiredHours, SpecialInstructions,
Adult_Child, State, SSID, PeopleID, TANF, ServiceArea, Weekly, Month,
ReferralStatus, TanfStaffMakeReferal, Message, Phone, StateStudentID,
TribalAfflilation, StudentCity, StudentState, StudentZip, StudentAddress,
DateReleased, StudentRelease, ParentRelease, ScannedDocuments,
EmailAddress,
Enrollmentstatus, MaritalStatus, Vetran, TanfSpouseName, TanfSpouseSocial,
PntID, Pictures FROM TANFParticipants_view

Gina Whipp said:
Okay, that s not what I want...

Go to the form which you use to enter the pictures (in the Access
database)
Go to Design View of that form and pull up the properties
In the Properties section at the top it will RecordSource... copy and
paste
that here.

--
Gina Whipp

"I feel I have been denied critical, need to know, information!" -
Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm

I hope I am understanding you. this is the record source
Picture is an Image, PicID is Interget (Identiy/SqL Autonumber) only
parent
is nvarchar (50)

SELECT Picture, PicID, PeopleID, [Parent ID] FROM TanfPictures_tbl

:

And the RecordSoirce of the form?

--
Gina Whipp

"I feel I have been denied critical, need to know, information!" -
Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm

I'm sorry Its Access 2007 with SQL server 2005 as the engine. Yes
the
pictures are stored in a table which only stores pics

:

desireemm,

We're going to need a little help here...

Access version?
Are you, in fact, using SQL Server 7.0 or earlier or another
version?
Are you storing the pictures in the database or rather trying to
store
them
in the database?
What is the RecordSource of the form?

....that should get us started.

--
Gina Whipp

"I feel I have been denied critical, need to know, information!" -
Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm

Hi all I have a table called Pictures_tbl that has a one to many
relationship
with a parent table called People_tbl. Every time I enter a
picture
into
the
form where the Pictures_tbl is I get this error message. Can
anyone
help.


This error can occur if the data you are attempting to save is
saving
to a
Microsoft SQL Server 7.0 or earlier database and the RecordSource
for
the
subform is using an SQL select statement with fields pulled
directly
from
the
source table, and the table is using an Identity field set as its
primary
key.
To avoid this problem set the RecordSource property of the
subform
to a
table or a query.
-Or-
Upgrade to a newer version of Microsoft SQL Server.
 
G

Gina Whipp

Error mesage?

Also, can you copy/paste the code the Command Button is using?

--
Gina Whipp

"I feel I have been denied critical, need to know, information!" - Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm

desireemm said:
it still didnt work, it does work if I make the picture form a subform and
enter pictures but it doesnnt work when I access it through a command
button.


Gina Whipp said:
desireemm,

Okay now the error message...

This error can occur if the data you are attempting to save is saving to
a
Microsoft SQL Server 7.0 or earlier database and the RecordSource for the
subform is using an SQL select statement with fields pulled directly from
the
source table, and the table is using an Identity field set as its primary
key.
*****To avoid this problem set the RecordSource property of the subform
to a
table or a query.*****

Because of your version of SQL Server you will need to turn you SELECT
statement into a QUERY. Make the QUERY the RecordSource of the form. To
do
that...

1. Go back to Design View of the Form and return to the RecordSource and
click the elipse button [...].
2. Once that window open press the SAVE button and name your query and
save. Say "Yes" or "Okay" to all questions and try your insert picture
again.

--
Gina Whipp

"I feel I have been denied critical, need to know, information!" -
Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm

desireemm said:
ok Here is the Record source

SELECT [Parent ID], [Family ID], [Referral Location], [Referral Date],
[Registration Date], [Student First Name], [Student SS#], [Student Last
Name], [Student Sex], Grade, Age, [Student Date of Birth], [Event ID],
TANFreferral, TypeOfParticipant, RequiredHours, SpecialInstructions,
Adult_Child, State, SSID, PeopleID, TANF, ServiceArea, Weekly, Month,
ReferralStatus, TanfStaffMakeReferal, Message, Phone, StateStudentID,
TribalAfflilation, StudentCity, StudentState, StudentZip,
StudentAddress,
DateReleased, StudentRelease, ParentRelease, ScannedDocuments,
EmailAddress,
Enrollmentstatus, MaritalStatus, Vetran, TanfSpouseName,
TanfSpouseSocial,
PntID, Pictures FROM TANFParticipants_view

:

Okay, that s not what I want...

Go to the form which you use to enter the pictures (in the Access
database)
Go to Design View of that form and pull up the properties
In the Properties section at the top it will RecordSource... copy and
paste
that here.

--
Gina Whipp

"I feel I have been denied critical, need to know, information!" -
Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm

I hope I am understanding you. this is the record source
Picture is an Image, PicID is Interget (Identiy/SqL Autonumber) only
parent
is nvarchar (50)

SELECT Picture, PicID, PeopleID, [Parent ID] FROM TanfPictures_tbl

:

And the RecordSoirce of the form?

--
Gina Whipp

"I feel I have been denied critical, need to know, information!" -
Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm

I'm sorry Its Access 2007 with SQL server 2005 as the engine.
Yes
the
pictures are stored in a table which only stores pics

:

desireemm,

We're going to need a little help here...

Access version?
Are you, in fact, using SQL Server 7.0 or earlier or another
version?
Are you storing the pictures in the database or rather trying to
store
them
in the database?
What is the RecordSource of the form?

....that should get us started.

--
Gina Whipp

"I feel I have been denied critical, need to know,
information!" -
Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm

message
Hi all I have a table called Pictures_tbl that has a one to
many
relationship
with a parent table called People_tbl. Every time I enter a
picture
into
the
form where the Pictures_tbl is I get this error message. Can
anyone
help.


This error can occur if the data you are attempting to save is
saving
to a
Microsoft SQL Server 7.0 or earlier database and the
RecordSource
for
the
subform is using an SQL select statement with fields pulled
directly
from
the
source table, and the table is using an Identity field set as
its
primary
key.
To avoid this problem set the RecordSource property of the
subform
to a
table or a query.
-Or-
Upgrade to a newer version of Microsoft SQL Server.
 
D

desireemm

here is what the command button usese

Private Sub Command439_Click()
On Error GoTo Err_Command439_Click

Dim stDocName As String
Dim stLinkCriteria As String

stDocName = "ClientPictures_fm"

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

Exit_Command439_Click:
Exit Sub

Err_Command439_Click:
MsgBox Err.Description
Resume Exit_Command439_Click

End Sub


Gina Whipp said:
Error mesage?

Also, can you copy/paste the code the Command Button is using?

--
Gina Whipp

"I feel I have been denied critical, need to know, information!" - Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm

desireemm said:
it still didnt work, it does work if I make the picture form a subform and
enter pictures but it doesnnt work when I access it through a command
button.


Gina Whipp said:
desireemm,

Okay now the error message...

This error can occur if the data you are attempting to save is saving to
a
Microsoft SQL Server 7.0 or earlier database and the RecordSource for the
subform is using an SQL select statement with fields pulled directly from
the
source table, and the table is using an Identity field set as its primary
key.
*****To avoid this problem set the RecordSource property of the subform
to a
table or a query.*****

Because of your version of SQL Server you will need to turn you SELECT
statement into a QUERY. Make the QUERY the RecordSource of the form. To
do
that...

1. Go back to Design View of the Form and return to the RecordSource and
click the elipse button [...].
2. Once that window open press the SAVE button and name your query and
save. Say "Yes" or "Okay" to all questions and try your insert picture
again.

--
Gina Whipp

"I feel I have been denied critical, need to know, information!" -
Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm

ok Here is the Record source

SELECT [Parent ID], [Family ID], [Referral Location], [Referral Date],
[Registration Date], [Student First Name], [Student SS#], [Student Last
Name], [Student Sex], Grade, Age, [Student Date of Birth], [Event ID],
TANFreferral, TypeOfParticipant, RequiredHours, SpecialInstructions,
Adult_Child, State, SSID, PeopleID, TANF, ServiceArea, Weekly, Month,
ReferralStatus, TanfStaffMakeReferal, Message, Phone, StateStudentID,
TribalAfflilation, StudentCity, StudentState, StudentZip,
StudentAddress,
DateReleased, StudentRelease, ParentRelease, ScannedDocuments,
EmailAddress,
Enrollmentstatus, MaritalStatus, Vetran, TanfSpouseName,
TanfSpouseSocial,
PntID, Pictures FROM TANFParticipants_view

:

Okay, that s not what I want...

Go to the form which you use to enter the pictures (in the Access
database)
Go to Design View of that form and pull up the properties
In the Properties section at the top it will RecordSource... copy and
paste
that here.

--
Gina Whipp

"I feel I have been denied critical, need to know, information!" -
Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm

I hope I am understanding you. this is the record source
Picture is an Image, PicID is Interget (Identiy/SqL Autonumber) only
parent
is nvarchar (50)

SELECT Picture, PicID, PeopleID, [Parent ID] FROM TanfPictures_tbl

:

And the RecordSoirce of the form?

--
Gina Whipp

"I feel I have been denied critical, need to know, information!" -
Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm

I'm sorry Its Access 2007 with SQL server 2005 as the engine.
Yes
the
pictures are stored in a table which only stores pics

:

desireemm,

We're going to need a little help here...

Access version?
Are you, in fact, using SQL Server 7.0 or earlier or another
version?
Are you storing the pictures in the database or rather trying to
store
them
in the database?
What is the RecordSource of the form?

....that should get us started.

--
Gina Whipp

"I feel I have been denied critical, need to know,
information!" -
Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm

message
Hi all I have a table called Pictures_tbl that has a one to
many
relationship
with a parent table called People_tbl. Every time I enter a
picture
into
the
form where the Pictures_tbl is I get this error message. Can
anyone
help.


This error can occur if the data you are attempting to save is
saving
to a
Microsoft SQL Server 7.0 or earlier database and the
RecordSource
for
the
subform is using an SQL select statement with fields pulled
directly
from
the
source table, and the table is using an Identity field set as
its
primary
key.
To avoid this problem set the RecordSource property of the
subform
to a
table or a query.
-Or-
Upgrade to a newer version of Microsoft SQL Server.
 
G

Gina Whipp

Okay, I think I may be asking this incorrectly...

You have a form thru which you insert pictures... How do you insert the
pictures? The code you show below simply opens the pictures form. If that
is the form where you recieve the error then THAT form needs to have it's
RecordSource saved as a query.

--
Gina Whipp

"I feel I have been denied critical, need to know, information!" - Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm

desireemm said:
here is what the command button usese

Private Sub Command439_Click()
On Error GoTo Err_Command439_Click

Dim stDocName As String
Dim stLinkCriteria As String

stDocName = "ClientPictures_fm"

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

Exit_Command439_Click:
Exit Sub

Err_Command439_Click:
MsgBox Err.Description
Resume Exit_Command439_Click

End Sub


Gina Whipp said:
Error mesage?

Also, can you copy/paste the code the Command Button is using?

--
Gina Whipp

"I feel I have been denied critical, need to know, information!" -
Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm

desireemm said:
it still didnt work, it does work if I make the picture form a subform
and
enter pictures but it doesnnt work when I access it through a command
button.


:

desireemm,

Okay now the error message...

This error can occur if the data you are attempting to save is saving
to
a
Microsoft SQL Server 7.0 or earlier database and the RecordSource for
the
subform is using an SQL select statement with fields pulled directly
from
the
source table, and the table is using an Identity field set as its
primary
key.
*****To avoid this problem set the RecordSource property of the
subform
to a
table or a query.*****

Because of your version of SQL Server you will need to turn you SELECT
statement into a QUERY. Make the QUERY the RecordSource of the form.
To
do
that...

1. Go back to Design View of the Form and return to the RecordSource
and
click the elipse button [...].
2. Once that window open press the SAVE button and name your query
and
save. Say "Yes" or "Okay" to all questions and try your insert
picture
again.

--
Gina Whipp

"I feel I have been denied critical, need to know, information!" -
Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm

ok Here is the Record source

SELECT [Parent ID], [Family ID], [Referral Location], [Referral
Date],
[Registration Date], [Student First Name], [Student SS#], [Student
Last
Name], [Student Sex], Grade, Age, [Student Date of Birth], [Event
ID],
TANFreferral, TypeOfParticipant, RequiredHours, SpecialInstructions,
Adult_Child, State, SSID, PeopleID, TANF, ServiceArea, Weekly,
Month,
ReferralStatus, TanfStaffMakeReferal, Message, Phone,
StateStudentID,
TribalAfflilation, StudentCity, StudentState, StudentZip,
StudentAddress,
DateReleased, StudentRelease, ParentRelease, ScannedDocuments,
EmailAddress,
Enrollmentstatus, MaritalStatus, Vetran, TanfSpouseName,
TanfSpouseSocial,
PntID, Pictures FROM TANFParticipants_view

:

Okay, that s not what I want...

Go to the form which you use to enter the pictures (in the Access
database)
Go to Design View of that form and pull up the properties
In the Properties section at the top it will RecordSource... copy
and
paste
that here.

--
Gina Whipp

"I feel I have been denied critical, need to know, information!" -
Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm

I hope I am understanding you. this is the record source
Picture is an Image, PicID is Interget (Identiy/SqL Autonumber)
only
parent
is nvarchar (50)

SELECT Picture, PicID, PeopleID, [Parent ID] FROM
TanfPictures_tbl

:

And the RecordSoirce of the form?

--
Gina Whipp

"I feel I have been denied critical, need to know,
information!" -
Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm

message
I'm sorry Its Access 2007 with SQL server 2005 as the engine.
Yes
the
pictures are stored in a table which only stores pics

:

desireemm,

We're going to need a little help here...

Access version?
Are you, in fact, using SQL Server 7.0 or earlier or another
version?
Are you storing the pictures in the database or rather trying
to
store
them
in the database?
What is the RecordSource of the form?

....that should get us started.

--
Gina Whipp

"I feel I have been denied critical, need to know,
information!" -
Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm

message
Hi all I have a table called Pictures_tbl that has a one to
many
relationship
with a parent table called People_tbl. Every time I enter a
picture
into
the
form where the Pictures_tbl is I get this error message.
Can
anyone
help.


This error can occur if the data you are attempting to save
is
saving
to a
Microsoft SQL Server 7.0 or earlier database and the
RecordSource
for
the
subform is using an SQL select statement with fields pulled
directly
from
the
source table, and the table is using an Identity field set
as
its
primary
key.
To avoid this problem set the RecordSource property of the
subform
to a
table or a query.
-Or-
Upgrade to a newer version of Microsoft SQL Server.
 
D

desireemm

Hi Gina I did save record souce, this is the record souce for the form that I
insert the pictures into. And the Field is an Image field, I have done this
before and not had any problems now for some reason I am having problems.
But if I make that form into a sub form on the main form it works fine. so
I'm confused. the image is an ole object I guess

SELECT PeopleID, Image, PicID, ParentID FROM AdultPics_tbl

Gina Whipp said:
Okay, I think I may be asking this incorrectly...

You have a form thru which you insert pictures... How do you insert the
pictures? The code you show below simply opens the pictures form. If that
is the form where you recieve the error then THAT form needs to have it's
RecordSource saved as a query.

--
Gina Whipp

"I feel I have been denied critical, need to know, information!" - Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm

desireemm said:
here is what the command button usese

Private Sub Command439_Click()
On Error GoTo Err_Command439_Click

Dim stDocName As String
Dim stLinkCriteria As String

stDocName = "ClientPictures_fm"

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

Exit_Command439_Click:
Exit Sub

Err_Command439_Click:
MsgBox Err.Description
Resume Exit_Command439_Click

End Sub


Gina Whipp said:
Error mesage?

Also, can you copy/paste the code the Command Button is using?

--
Gina Whipp

"I feel I have been denied critical, need to know, information!" -
Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm

it still didnt work, it does work if I make the picture form a subform
and
enter pictures but it doesnnt work when I access it through a command
button.


:

desireemm,

Okay now the error message...

This error can occur if the data you are attempting to save is saving
to
a
Microsoft SQL Server 7.0 or earlier database and the RecordSource for
the
subform is using an SQL select statement with fields pulled directly
from
the
source table, and the table is using an Identity field set as its
primary
key.
*****To avoid this problem set the RecordSource property of the
subform
to a
table or a query.*****

Because of your version of SQL Server you will need to turn you SELECT
statement into a QUERY. Make the QUERY the RecordSource of the form.
To
do
that...

1. Go back to Design View of the Form and return to the RecordSource
and
click the elipse button [...].
2. Once that window open press the SAVE button and name your query
and
save. Say "Yes" or "Okay" to all questions and try your insert
picture
again.

--
Gina Whipp

"I feel I have been denied critical, need to know, information!" -
Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm

ok Here is the Record source

SELECT [Parent ID], [Family ID], [Referral Location], [Referral
Date],
[Registration Date], [Student First Name], [Student SS#], [Student
Last
Name], [Student Sex], Grade, Age, [Student Date of Birth], [Event
ID],
TANFreferral, TypeOfParticipant, RequiredHours, SpecialInstructions,
Adult_Child, State, SSID, PeopleID, TANF, ServiceArea, Weekly,
Month,
ReferralStatus, TanfStaffMakeReferal, Message, Phone,
StateStudentID,
TribalAfflilation, StudentCity, StudentState, StudentZip,
StudentAddress,
DateReleased, StudentRelease, ParentRelease, ScannedDocuments,
EmailAddress,
Enrollmentstatus, MaritalStatus, Vetran, TanfSpouseName,
TanfSpouseSocial,
PntID, Pictures FROM TANFParticipants_view

:

Okay, that s not what I want...

Go to the form which you use to enter the pictures (in the Access
database)
Go to Design View of that form and pull up the properties
In the Properties section at the top it will RecordSource... copy
and
paste
that here.

--
Gina Whipp

"I feel I have been denied critical, need to know, information!" -
Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm

I hope I am understanding you. this is the record source
Picture is an Image, PicID is Interget (Identiy/SqL Autonumber)
only
parent
is nvarchar (50)

SELECT Picture, PicID, PeopleID, [Parent ID] FROM
TanfPictures_tbl

:

And the RecordSoirce of the form?

--
Gina Whipp

"I feel I have been denied critical, need to know,
information!" -
Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm

message
I'm sorry Its Access 2007 with SQL server 2005 as the engine.
Yes
the
pictures are stored in a table which only stores pics

:

desireemm,

We're going to need a little help here...

Access version?
Are you, in fact, using SQL Server 7.0 or earlier or another
version?
Are you storing the pictures in the database or rather trying
to
store
them
in the database?
What is the RecordSource of the form?

....that should get us started.

--
Gina Whipp

"I feel I have been denied critical, need to know,
information!" -
Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm

message
Hi all I have a table called Pictures_tbl that has a one to
many
relationship
with a parent table called People_tbl. Every time I enter a
picture
into
the
form where the Pictures_tbl is I get this error message.
Can
anyone
help.


This error can occur if the data you are attempting to save
is
saving
to a
Microsoft SQL Server 7.0 or earlier database and the
RecordSource
for
the
subform is using an SQL select statement with fields pulled
directly
from
the
source table, and the table is using an Identity field set
as
its
primary
key.
To avoid this problem set the RecordSource property of the
subform
to a
table or a query.
-Or-
Upgrade to a newer version of Microsoft SQL Server.
 
G

Gina Whipp

The below is not a query it is a SELECT statement... You must save the
RecordSource of the form that has the OLE Object as a query.

I would also try refreshing the links to your SQL Server BUT based on the
error message the above is the issue.

--
Gina Whipp

"I feel I have been denied critical, need to know, information!" - Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm

desireemm said:
Hi Gina I did save record souce, this is the record souce for the form
that I
insert the pictures into. And the Field is an Image field, I have done
this
before and not had any problems now for some reason I am having problems.
But if I make that form into a sub form on the main form it works fine.
so
I'm confused. the image is an ole object I guess

SELECT PeopleID, Image, PicID, ParentID FROM AdultPics_tbl

Gina Whipp said:
Okay, I think I may be asking this incorrectly...

You have a form thru which you insert pictures... How do you insert the
pictures? The code you show below simply opens the pictures form. If
that
is the form where you recieve the error then THAT form needs to have it's
RecordSource saved as a query.

--
Gina Whipp

"I feel I have been denied critical, need to know, information!" -
Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm

desireemm said:
here is what the command button usese

Private Sub Command439_Click()
On Error GoTo Err_Command439_Click

Dim stDocName As String
Dim stLinkCriteria As String

stDocName = "ClientPictures_fm"

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

Exit_Command439_Click:
Exit Sub

Err_Command439_Click:
MsgBox Err.Description
Resume Exit_Command439_Click

End Sub


:

Error mesage?

Also, can you copy/paste the code the Command Button is using?

--
Gina Whipp

"I feel I have been denied critical, need to know, information!" -
Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm

it still didnt work, it does work if I make the picture form a
subform
and
enter pictures but it doesnnt work when I access it through a
command
button.


:

desireemm,

Okay now the error message...

This error can occur if the data you are attempting to save is
saving
to
a
Microsoft SQL Server 7.0 or earlier database and the RecordSource
for
the
subform is using an SQL select statement with fields pulled
directly
from
the
source table, and the table is using an Identity field set as its
primary
key.
*****To avoid this problem set the RecordSource property of the
subform
to a
table or a query.*****

Because of your version of SQL Server you will need to turn you
SELECT
statement into a QUERY. Make the QUERY the RecordSource of the
form.
To
do
that...

1. Go back to Design View of the Form and return to the
RecordSource
and
click the elipse button [...].
2. Once that window open press the SAVE button and name your query
and
save. Say "Yes" or "Okay" to all questions and try your insert
picture
again.

--
Gina Whipp

"I feel I have been denied critical, need to know, information!" -
Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm

ok Here is the Record source

SELECT [Parent ID], [Family ID], [Referral Location], [Referral
Date],
[Registration Date], [Student First Name], [Student SS#],
[Student
Last
Name], [Student Sex], Grade, Age, [Student Date of Birth], [Event
ID],
TANFreferral, TypeOfParticipant, RequiredHours,
SpecialInstructions,
Adult_Child, State, SSID, PeopleID, TANF, ServiceArea, Weekly,
Month,
ReferralStatus, TanfStaffMakeReferal, Message, Phone,
StateStudentID,
TribalAfflilation, StudentCity, StudentState, StudentZip,
StudentAddress,
DateReleased, StudentRelease, ParentRelease, ScannedDocuments,
EmailAddress,
Enrollmentstatus, MaritalStatus, Vetran, TanfSpouseName,
TanfSpouseSocial,
PntID, Pictures FROM TANFParticipants_view

:

Okay, that s not what I want...

Go to the form which you use to enter the pictures (in the
Access
database)
Go to Design View of that form and pull up the properties
In the Properties section at the top it will RecordSource...
copy
and
paste
that here.

--
Gina Whipp

"I feel I have been denied critical, need to know,
information!" -
Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm

message
I hope I am understanding you. this is the record source
Picture is an Image, PicID is Interget (Identiy/SqL
Autonumber)
only
parent
is nvarchar (50)

SELECT Picture, PicID, PeopleID, [Parent ID] FROM
TanfPictures_tbl

:

And the RecordSoirce of the form?

--
Gina Whipp

"I feel I have been denied critical, need to know,
information!" -
Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm

message
I'm sorry Its Access 2007 with SQL server 2005 as the
engine.
Yes
the
pictures are stored in a table which only stores pics

:

desireemm,

We're going to need a little help here...

Access version?
Are you, in fact, using SQL Server 7.0 or earlier or
another
version?
Are you storing the pictures in the database or rather
trying
to
store
them
in the database?
What is the RecordSource of the form?

....that should get us started.

--
Gina Whipp

"I feel I have been denied critical, need to know,
information!" -
Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm

message
Hi all I have a table called Pictures_tbl that has a one
to
many
relationship
with a parent table called People_tbl. Every time I
enter a
picture
into
the
form where the Pictures_tbl is I get this error message.
Can
anyone
help.


This error can occur if the data you are attempting to
save
is
saving
to a
Microsoft SQL Server 7.0 or earlier database and the
RecordSource
for
the
subform is using an SQL select statement with fields
pulled
directly
from
the
source table, and the table is using an Identity field
set
as
its
primary
key.
To avoid this problem set the RecordSource property of
the
subform
to a
table or a query.
-Or-
Upgrade to a newer version of Microsoft SQL Server.
 
G

Gina Whipp

Just a thought, perhaps the below will be easier...

Main form

Subform attached to Main form - OLE Object on this form
RecordSource should be a query

--
Gina Whipp

"I feel I have been denied critical, need to know, information!" - Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm

desireemm said:
Hi Gina I did save record souce, this is the record souce for the form
that I
insert the pictures into. And the Field is an Image field, I have done
this
before and not had any problems now for some reason I am having problems.
But if I make that form into a sub form on the main form it works fine.
so
I'm confused. the image is an ole object I guess

SELECT PeopleID, Image, PicID, ParentID FROM AdultPics_tbl

Gina Whipp said:
Okay, I think I may be asking this incorrectly...

You have a form thru which you insert pictures... How do you insert the
pictures? The code you show below simply opens the pictures form. If
that
is the form where you recieve the error then THAT form needs to have it's
RecordSource saved as a query.

--
Gina Whipp

"I feel I have been denied critical, need to know, information!" -
Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm

desireemm said:
here is what the command button usese

Private Sub Command439_Click()
On Error GoTo Err_Command439_Click

Dim stDocName As String
Dim stLinkCriteria As String

stDocName = "ClientPictures_fm"

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

Exit_Command439_Click:
Exit Sub

Err_Command439_Click:
MsgBox Err.Description
Resume Exit_Command439_Click

End Sub


:

Error mesage?

Also, can you copy/paste the code the Command Button is using?

--
Gina Whipp

"I feel I have been denied critical, need to know, information!" -
Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm

it still didnt work, it does work if I make the picture form a
subform
and
enter pictures but it doesnnt work when I access it through a
command
button.


:

desireemm,

Okay now the error message...

This error can occur if the data you are attempting to save is
saving
to
a
Microsoft SQL Server 7.0 or earlier database and the RecordSource
for
the
subform is using an SQL select statement with fields pulled
directly
from
the
source table, and the table is using an Identity field set as its
primary
key.
*****To avoid this problem set the RecordSource property of the
subform
to a
table or a query.*****

Because of your version of SQL Server you will need to turn you
SELECT
statement into a QUERY. Make the QUERY the RecordSource of the
form.
To
do
that...

1. Go back to Design View of the Form and return to the
RecordSource
and
click the elipse button [...].
2. Once that window open press the SAVE button and name your query
and
save. Say "Yes" or "Okay" to all questions and try your insert
picture
again.

--
Gina Whipp

"I feel I have been denied critical, need to know, information!" -
Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm

ok Here is the Record source

SELECT [Parent ID], [Family ID], [Referral Location], [Referral
Date],
[Registration Date], [Student First Name], [Student SS#],
[Student
Last
Name], [Student Sex], Grade, Age, [Student Date of Birth], [Event
ID],
TANFreferral, TypeOfParticipant, RequiredHours,
SpecialInstructions,
Adult_Child, State, SSID, PeopleID, TANF, ServiceArea, Weekly,
Month,
ReferralStatus, TanfStaffMakeReferal, Message, Phone,
StateStudentID,
TribalAfflilation, StudentCity, StudentState, StudentZip,
StudentAddress,
DateReleased, StudentRelease, ParentRelease, ScannedDocuments,
EmailAddress,
Enrollmentstatus, MaritalStatus, Vetran, TanfSpouseName,
TanfSpouseSocial,
PntID, Pictures FROM TANFParticipants_view

:

Okay, that s not what I want...

Go to the form which you use to enter the pictures (in the
Access
database)
Go to Design View of that form and pull up the properties
In the Properties section at the top it will RecordSource...
copy
and
paste
that here.

--
Gina Whipp

"I feel I have been denied critical, need to know,
information!" -
Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm

message
I hope I am understanding you. this is the record source
Picture is an Image, PicID is Interget (Identiy/SqL
Autonumber)
only
parent
is nvarchar (50)

SELECT Picture, PicID, PeopleID, [Parent ID] FROM
TanfPictures_tbl

:

And the RecordSoirce of the form?

--
Gina Whipp

"I feel I have been denied critical, need to know,
information!" -
Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm

message
I'm sorry Its Access 2007 with SQL server 2005 as the
engine.
Yes
the
pictures are stored in a table which only stores pics

:

desireemm,

We're going to need a little help here...

Access version?
Are you, in fact, using SQL Server 7.0 or earlier or
another
version?
Are you storing the pictures in the database or rather
trying
to
store
them
in the database?
What is the RecordSource of the form?

....that should get us started.

--
Gina Whipp

"I feel I have been denied critical, need to know,
information!" -
Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm

message
Hi all I have a table called Pictures_tbl that has a one
to
many
relationship
with a parent table called People_tbl. Every time I
enter a
picture
into
the
form where the Pictures_tbl is I get this error message.
Can
anyone
help.


This error can occur if the data you are attempting to
save
is
saving
to a
Microsoft SQL Server 7.0 or earlier database and the
RecordSource
for
the
subform is using an SQL select statement with fields
pulled
directly
from
the
source table, and the table is using an Identity field
set
as
its
primary
key.
To avoid this problem set the RecordSource property of
the
subform
to a
table or a query.
-Or-
Upgrade to a newer version of Microsoft SQL Server.
 
D

desireemm

Hi Gina and by the way thank yoiu so much for your help I really appreciate
it. I made the Record source for the picture form into a query but its still
not working. Also I noticed that when I put the command button on the form I
use the wizard and go throght the steps, when I get to the part where the
wizard ask do you wanto display specific information from this form, I choose
the to one where it says
open the form and dsiplay specific data. the data from the main form doesnt
even show only the data from the Picture form which is on the right side
shows. I wa thinkink elevating the probem by just displaying the picture as
a sub form with in the main form. what do you think??


Gina Whipp said:
Just a thought, perhaps the below will be easier...

Main form

Subform attached to Main form - OLE Object on this form
RecordSource should be a query

--
Gina Whipp

"I feel I have been denied critical, need to know, information!" - Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm

desireemm said:
Hi Gina I did save record souce, this is the record souce for the form
that I
insert the pictures into. And the Field is an Image field, I have done
this
before and not had any problems now for some reason I am having problems.
But if I make that form into a sub form on the main form it works fine.
so
I'm confused. the image is an ole object I guess

SELECT PeopleID, Image, PicID, ParentID FROM AdultPics_tbl

Gina Whipp said:
Okay, I think I may be asking this incorrectly...

You have a form thru which you insert pictures... How do you insert the
pictures? The code you show below simply opens the pictures form. If
that
is the form where you recieve the error then THAT form needs to have it's
RecordSource saved as a query.

--
Gina Whipp

"I feel I have been denied critical, need to know, information!" -
Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm

here is what the command button usese

Private Sub Command439_Click()
On Error GoTo Err_Command439_Click

Dim stDocName As String
Dim stLinkCriteria As String

stDocName = "ClientPictures_fm"

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

Exit_Command439_Click:
Exit Sub

Err_Command439_Click:
MsgBox Err.Description
Resume Exit_Command439_Click

End Sub


:

Error mesage?

Also, can you copy/paste the code the Command Button is using?

--
Gina Whipp

"I feel I have been denied critical, need to know, information!" -
Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm

it still didnt work, it does work if I make the picture form a
subform
and
enter pictures but it doesnnt work when I access it through a
command
button.


:

desireemm,

Okay now the error message...

This error can occur if the data you are attempting to save is
saving
to
a
Microsoft SQL Server 7.0 or earlier database and the RecordSource
for
the
subform is using an SQL select statement with fields pulled
directly
from
the
source table, and the table is using an Identity field set as its
primary
key.
*****To avoid this problem set the RecordSource property of the
subform
to a
table or a query.*****

Because of your version of SQL Server you will need to turn you
SELECT
statement into a QUERY. Make the QUERY the RecordSource of the
form.
To
do
that...

1. Go back to Design View of the Form and return to the
RecordSource
and
click the elipse button [...].
2. Once that window open press the SAVE button and name your query
and
save. Say "Yes" or "Okay" to all questions and try your insert
picture
again.

--
Gina Whipp

"I feel I have been denied critical, need to know, information!" -
Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm

ok Here is the Record source

SELECT [Parent ID], [Family ID], [Referral Location], [Referral
Date],
[Registration Date], [Student First Name], [Student SS#],
[Student
Last
Name], [Student Sex], Grade, Age, [Student Date of Birth], [Event
ID],
TANFreferral, TypeOfParticipant, RequiredHours,
SpecialInstructions,
Adult_Child, State, SSID, PeopleID, TANF, ServiceArea, Weekly,
Month,
ReferralStatus, TanfStaffMakeReferal, Message, Phone,
StateStudentID,
TribalAfflilation, StudentCity, StudentState, StudentZip,
StudentAddress,
DateReleased, StudentRelease, ParentRelease, ScannedDocuments,
EmailAddress,
Enrollmentstatus, MaritalStatus, Vetran, TanfSpouseName,
TanfSpouseSocial,
PntID, Pictures FROM TANFParticipants_view

:

Okay, that s not what I want...

Go to the form which you use to enter the pictures (in the
Access
database)
Go to Design View of that form and pull up the properties
In the Properties section at the top it will RecordSource...
copy
and
paste
that here.

--
Gina Whipp

"I feel I have been denied critical, need to know,
information!" -
Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm

message
I hope I am understanding you. this is the record source
Picture is an Image, PicID is Interget (Identiy/SqL
Autonumber)
only
parent
is nvarchar (50)

SELECT Picture, PicID, PeopleID, [Parent ID] FROM
TanfPictures_tbl

:

And the RecordSoirce of the form?

--
Gina Whipp

"I feel I have been denied critical, need to know,
information!" -
Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm

message
I'm sorry Its Access 2007 with SQL server 2005 as the
engine.
Yes
the
pictures are stored in a table which only stores pics

:

desireemm,

We're going to need a little help here...

Access version?
Are you, in fact, using SQL Server 7.0 or earlier or
another
version?
Are you storing the pictures in the database or rather
trying
to
store
them
in the database?
What is the RecordSource of the form?

....that should get us started.

--
Gina Whipp

"I feel I have been denied critical, need to know,
information!" -
Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm

message
Hi all I have a table called Pictures_tbl that has a one
to
many
relationship
with a parent table called People_tbl. Every time I
enter a
picture
into
the
form where the Pictures_tbl is I get this error message.
Can
anyone
help.


This error can occur if the data you are attempting to
save
is
saving
to a
Microsoft SQL Server 7.0 or earlier database and the
RecordSource
for
the
subform is using an SQL select statement with fields
pulled
directly
from
the
source table, and the table is using an Identity field
set
as
its
 
G

Gina Whipp

desireemm,

THANK YOU for thanks!

Not elevating because it should work... I know I have quite a few databases
where the picture is on the subform so not sure why this would be causing an
issue. Granted, I do not store my pictures in the table, I store them in a
directory which uses very different code but that should be the problem.
Based on the error message creating the query for the Main form and subform
SHOULD have fixed this issue.

Let's try this, the Main form, use this, TANFParticipants_view as the
RecordSource. Just make sure you can open TANFParticipants_view with no
messages.

--
Gina Whipp

"I feel I have been denied critical, need to know, information!" - Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm

desireemm said:
Hi Gina and by the way thank yoiu so much for your help I really
appreciate
it. I made the Record source for the picture form into a query but its
still
not working. Also I noticed that when I put the command button on the
form I
use the wizard and go throght the steps, when I get to the part where the
wizard ask do you wanto display specific information from this form, I
choose
the to one where it says
open the form and dsiplay specific data. the data from the main form
doesnt
even show only the data from the Picture form which is on the right side
shows. I wa thinkink elevating the probem by just displaying the picture
as
a sub form with in the main form. what do you think??


Gina Whipp said:
Just a thought, perhaps the below will be easier...

Main form

Subform attached to Main form - OLE Object on this form
RecordSource should be a query

--
Gina Whipp

"I feel I have been denied critical, need to know, information!" -
Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm

desireemm said:
Hi Gina I did save record souce, this is the record souce for the form
that I
insert the pictures into. And the Field is an Image field, I have done
this
before and not had any problems now for some reason I am having
problems.
But if I make that form into a sub form on the main form it works fine.
so
I'm confused. the image is an ole object I guess

SELECT PeopleID, Image, PicID, ParentID FROM AdultPics_tbl

:

Okay, I think I may be asking this incorrectly...

You have a form thru which you insert pictures... How do you insert
the
pictures? The code you show below simply opens the pictures form. If
that
is the form where you recieve the error then THAT form needs to have
it's
RecordSource saved as a query.

--
Gina Whipp

"I feel I have been denied critical, need to know, information!" -
Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm

here is what the command button usese

Private Sub Command439_Click()
On Error GoTo Err_Command439_Click

Dim stDocName As String
Dim stLinkCriteria As String

stDocName = "ClientPictures_fm"

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

Exit_Command439_Click:
Exit Sub

Err_Command439_Click:
MsgBox Err.Description
Resume Exit_Command439_Click

End Sub


:

Error mesage?

Also, can you copy/paste the code the Command Button is using?

--
Gina Whipp

"I feel I have been denied critical, need to know, information!" -
Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm

it still didnt work, it does work if I make the picture form a
subform
and
enter pictures but it doesnnt work when I access it through a
command
button.


:

desireemm,

Okay now the error message...

This error can occur if the data you are attempting to save is
saving
to
a
Microsoft SQL Server 7.0 or earlier database and the
RecordSource
for
the
subform is using an SQL select statement with fields pulled
directly
from
the
source table, and the table is using an Identity field set as
its
primary
key.
*****To avoid this problem set the RecordSource property of the
subform
to a
table or a query.*****

Because of your version of SQL Server you will need to turn you
SELECT
statement into a QUERY. Make the QUERY the RecordSource of the
form.
To
do
that...

1. Go back to Design View of the Form and return to the
RecordSource
and
click the elipse button [...].
2. Once that window open press the SAVE button and name your
query
and
save. Say "Yes" or "Okay" to all questions and try your insert
picture
again.

--
Gina Whipp

"I feel I have been denied critical, need to know,
information!" -
Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm

message
ok Here is the Record source

SELECT [Parent ID], [Family ID], [Referral Location],
[Referral
Date],
[Registration Date], [Student First Name], [Student SS#],
[Student
Last
Name], [Student Sex], Grade, Age, [Student Date of Birth],
[Event
ID],
TANFreferral, TypeOfParticipant, RequiredHours,
SpecialInstructions,
Adult_Child, State, SSID, PeopleID, TANF, ServiceArea, Weekly,
Month,
ReferralStatus, TanfStaffMakeReferal, Message, Phone,
StateStudentID,
TribalAfflilation, StudentCity, StudentState, StudentZip,
StudentAddress,
DateReleased, StudentRelease, ParentRelease, ScannedDocuments,
EmailAddress,
Enrollmentstatus, MaritalStatus, Vetran, TanfSpouseName,
TanfSpouseSocial,
PntID, Pictures FROM TANFParticipants_view

:

Okay, that s not what I want...

Go to the form which you use to enter the pictures (in the
Access
database)
Go to Design View of that form and pull up the properties
In the Properties section at the top it will RecordSource...
copy
and
paste
that here.

--
Gina Whipp

"I feel I have been denied critical, need to know,
information!" -
Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm

message
I hope I am understanding you. this is the record source
Picture is an Image, PicID is Interget (Identiy/SqL
Autonumber)
only
parent
is nvarchar (50)

SELECT Picture, PicID, PeopleID, [Parent ID] FROM
TanfPictures_tbl

:

And the RecordSoirce of the form?

--
Gina Whipp

"I feel I have been denied critical, need to know,
information!" -
Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm

message
I'm sorry Its Access 2007 with SQL server 2005 as the
engine.
Yes
the
pictures are stored in a table which only stores pics

:

desireemm,

We're going to need a little help here...

Access version?
Are you, in fact, using SQL Server 7.0 or earlier or
another
version?
Are you storing the pictures in the database or rather
trying
to
store
them
in the database?
What is the RecordSource of the form?

....that should get us started.

--
Gina Whipp

"I feel I have been denied critical, need to know,
information!" -
Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm

in
message
Hi all I have a table called Pictures_tbl that has a
one
to
many
relationship
with a parent table called People_tbl. Every time I
enter a
picture
into
the
form where the Pictures_tbl is I get this error
message.
Can
anyone
help.


This error can occur if the data you are attempting
to
save
is
saving
to a
Microsoft SQL Server 7.0 or earlier database and the
RecordSource
for
the
subform is using an SQL select statement with fields
pulled
directly
from
the
source table, and the table is using an Identity
field
set
as
its
 
D

desireemm

did what you said no problems there. Can you tell me more about how you
coded your pictures in the subform? How did you do that??
Gina Whipp said:
Just a thought, perhaps the below will be easier...

Main form

Subform attached to Main form - OLE Object on this form
RecordSource should be a query

--
Gina Whipp

"I feel I have been denied critical, need to know, information!" - Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm

desireemm said:
Hi Gina I did save record souce, this is the record souce for the form
that I
insert the pictures into. And the Field is an Image field, I have done
this
before and not had any problems now for some reason I am having problems.
But if I make that form into a sub form on the main form it works fine.
so
I'm confused. the image is an ole object I guess

SELECT PeopleID, Image, PicID, ParentID FROM AdultPics_tbl

Gina Whipp said:
Okay, I think I may be asking this incorrectly...

You have a form thru which you insert pictures... How do you insert the
pictures? The code you show below simply opens the pictures form. If
that
is the form where you recieve the error then THAT form needs to have it's
RecordSource saved as a query.

--
Gina Whipp

"I feel I have been denied critical, need to know, information!" -
Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm

here is what the command button usese

Private Sub Command439_Click()
On Error GoTo Err_Command439_Click

Dim stDocName As String
Dim stLinkCriteria As String

stDocName = "ClientPictures_fm"

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

Exit_Command439_Click:
Exit Sub

Err_Command439_Click:
MsgBox Err.Description
Resume Exit_Command439_Click

End Sub


:

Error mesage?

Also, can you copy/paste the code the Command Button is using?

--
Gina Whipp

"I feel I have been denied critical, need to know, information!" -
Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm

it still didnt work, it does work if I make the picture form a
subform
and
enter pictures but it doesnnt work when I access it through a
command
button.


:

desireemm,

Okay now the error message...

This error can occur if the data you are attempting to save is
saving
to
a
Microsoft SQL Server 7.0 or earlier database and the RecordSource
for
the
subform is using an SQL select statement with fields pulled
directly
from
the
source table, and the table is using an Identity field set as its
primary
key.
*****To avoid this problem set the RecordSource property of the
subform
to a
table or a query.*****

Because of your version of SQL Server you will need to turn you
SELECT
statement into a QUERY. Make the QUERY the RecordSource of the
form.
To
do
that...

1. Go back to Design View of the Form and return to the
RecordSource
and
click the elipse button [...].
2. Once that window open press the SAVE button and name your query
and
save. Say "Yes" or "Okay" to all questions and try your insert
picture
again.

--
Gina Whipp

"I feel I have been denied critical, need to know, information!" -
Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm

ok Here is the Record source

SELECT [Parent ID], [Family ID], [Referral Location], [Referral
Date],
[Registration Date], [Student First Name], [Student SS#],
[Student
Last
Name], [Student Sex], Grade, Age, [Student Date of Birth], [Event
ID],
TANFreferral, TypeOfParticipant, RequiredHours,
SpecialInstructions,
Adult_Child, State, SSID, PeopleID, TANF, ServiceArea, Weekly,
Month,
ReferralStatus, TanfStaffMakeReferal, Message, Phone,
StateStudentID,
TribalAfflilation, StudentCity, StudentState, StudentZip,
StudentAddress,
DateReleased, StudentRelease, ParentRelease, ScannedDocuments,
EmailAddress,
Enrollmentstatus, MaritalStatus, Vetran, TanfSpouseName,
TanfSpouseSocial,
PntID, Pictures FROM TANFParticipants_view

:

Okay, that s not what I want...

Go to the form which you use to enter the pictures (in the
Access
database)
Go to Design View of that form and pull up the properties
In the Properties section at the top it will RecordSource...
copy
and
paste
that here.

--
Gina Whipp

"I feel I have been denied critical, need to know,
information!" -
Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm

message
I hope I am understanding you. this is the record source
Picture is an Image, PicID is Interget (Identiy/SqL
Autonumber)
only
parent
is nvarchar (50)

SELECT Picture, PicID, PeopleID, [Parent ID] FROM
TanfPictures_tbl

:

And the RecordSoirce of the form?

--
Gina Whipp

"I feel I have been denied critical, need to know,
information!" -
Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm

message
I'm sorry Its Access 2007 with SQL server 2005 as the
engine.
Yes
the
pictures are stored in a table which only stores pics

:

desireemm,

We're going to need a little help here...

Access version?
Are you, in fact, using SQL Server 7.0 or earlier or
another
version?
Are you storing the pictures in the database or rather
trying
to
store
them
in the database?
What is the RecordSource of the form?

....that should get us started.

--
Gina Whipp

"I feel I have been denied critical, need to know,
information!" -
Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm

message
Hi all I have a table called Pictures_tbl that has a one
to
many
relationship
with a parent table called People_tbl. Every time I
enter a
picture
into
the
form where the Pictures_tbl is I get this error message.
Can
anyone
help.


This error can occur if the data you are attempting to
save
is
saving
to a
Microsoft SQL Server 7.0 or earlier database and the
RecordSource
for
the
subform is using an SQL select statement with fields
pulled
directly
from
the
source table, and the table is using an Identity field
set
as
its
 
G

Gina Whipp

Unless you want to store your pictures in a directory it won't work for you.
Is that what you want to do? It will invlove relating those images to their
prospective records...

--
Gina Whipp

"I feel I have been denied critical, need to know, information!" - Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm

desireemm said:
did what you said no problems there. Can you tell me more about how you
coded your pictures in the subform? How did you do that??
Gina Whipp said:
Just a thought, perhaps the below will be easier...

Main form

Subform attached to Main form - OLE Object on this form
RecordSource should be a query

--
Gina Whipp

"I feel I have been denied critical, need to know, information!" -
Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm

desireemm said:
Hi Gina I did save record souce, this is the record souce for the form
that I
insert the pictures into. And the Field is an Image field, I have done
this
before and not had any problems now for some reason I am having
problems.
But if I make that form into a sub form on the main form it works fine.
so
I'm confused. the image is an ole object I guess

SELECT PeopleID, Image, PicID, ParentID FROM AdultPics_tbl

:

Okay, I think I may be asking this incorrectly...

You have a form thru which you insert pictures... How do you insert
the
pictures? The code you show below simply opens the pictures form. If
that
is the form where you recieve the error then THAT form needs to have
it's
RecordSource saved as a query.

--
Gina Whipp

"I feel I have been denied critical, need to know, information!" -
Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm

here is what the command button usese

Private Sub Command439_Click()
On Error GoTo Err_Command439_Click

Dim stDocName As String
Dim stLinkCriteria As String

stDocName = "ClientPictures_fm"

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

Exit_Command439_Click:
Exit Sub

Err_Command439_Click:
MsgBox Err.Description
Resume Exit_Command439_Click

End Sub


:

Error mesage?

Also, can you copy/paste the code the Command Button is using?

--
Gina Whipp

"I feel I have been denied critical, need to know, information!" -
Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm

it still didnt work, it does work if I make the picture form a
subform
and
enter pictures but it doesnnt work when I access it through a
command
button.


:

desireemm,

Okay now the error message...

This error can occur if the data you are attempting to save is
saving
to
a
Microsoft SQL Server 7.0 or earlier database and the
RecordSource
for
the
subform is using an SQL select statement with fields pulled
directly
from
the
source table, and the table is using an Identity field set as
its
primary
key.
*****To avoid this problem set the RecordSource property of the
subform
to a
table or a query.*****

Because of your version of SQL Server you will need to turn you
SELECT
statement into a QUERY. Make the QUERY the RecordSource of the
form.
To
do
that...

1. Go back to Design View of the Form and return to the
RecordSource
and
click the elipse button [...].
2. Once that window open press the SAVE button and name your
query
and
save. Say "Yes" or "Okay" to all questions and try your insert
picture
again.

--
Gina Whipp

"I feel I have been denied critical, need to know,
information!" -
Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm

message
ok Here is the Record source

SELECT [Parent ID], [Family ID], [Referral Location],
[Referral
Date],
[Registration Date], [Student First Name], [Student SS#],
[Student
Last
Name], [Student Sex], Grade, Age, [Student Date of Birth],
[Event
ID],
TANFreferral, TypeOfParticipant, RequiredHours,
SpecialInstructions,
Adult_Child, State, SSID, PeopleID, TANF, ServiceArea, Weekly,
Month,
ReferralStatus, TanfStaffMakeReferal, Message, Phone,
StateStudentID,
TribalAfflilation, StudentCity, StudentState, StudentZip,
StudentAddress,
DateReleased, StudentRelease, ParentRelease, ScannedDocuments,
EmailAddress,
Enrollmentstatus, MaritalStatus, Vetran, TanfSpouseName,
TanfSpouseSocial,
PntID, Pictures FROM TANFParticipants_view

:

Okay, that s not what I want...

Go to the form which you use to enter the pictures (in the
Access
database)
Go to Design View of that form and pull up the properties
In the Properties section at the top it will RecordSource...
copy
and
paste
that here.

--
Gina Whipp

"I feel I have been denied critical, need to know,
information!" -
Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm

message
I hope I am understanding you. this is the record source
Picture is an Image, PicID is Interget (Identiy/SqL
Autonumber)
only
parent
is nvarchar (50)

SELECT Picture, PicID, PeopleID, [Parent ID] FROM
TanfPictures_tbl

:

And the RecordSoirce of the form?

--
Gina Whipp

"I feel I have been denied critical, need to know,
information!" -
Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm

message
I'm sorry Its Access 2007 with SQL server 2005 as the
engine.
Yes
the
pictures are stored in a table which only stores pics

:

desireemm,

We're going to need a little help here...

Access version?
Are you, in fact, using SQL Server 7.0 or earlier or
another
version?
Are you storing the pictures in the database or rather
trying
to
store
them
in the database?
What is the RecordSource of the form?

....that should get us started.

--
Gina Whipp

"I feel I have been denied critical, need to know,
information!" -
Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm

in
message
Hi all I have a table called Pictures_tbl that has a
one
to
many
relationship
with a parent table called People_tbl. Every time I
enter a
picture
into
the
form where the Pictures_tbl is I get this error
message.
Can
anyone
help.


This error can occur if the data you are attempting
to
save
is
saving
to a
Microsoft SQL Server 7.0 or earlier database and the
RecordSource
for
the
subform is using an SQL select statement with fields
pulled
directly
from
the
source table, and the table is using an Identity
field
set
as
its
 
D

desireemm

Yes I would like to try that approach actually, I just dont know how to do
it. would like to store them in a directory

Gina Whipp said:
Just a thought, perhaps the below will be easier...

Main form

Subform attached to Main form - OLE Object on this form
RecordSource should be a query

--
Gina Whipp

"I feel I have been denied critical, need to know, information!" - Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm

desireemm said:
Hi Gina I did save record souce, this is the record souce for the form
that I
insert the pictures into. And the Field is an Image field, I have done
this
before and not had any problems now for some reason I am having problems.
But if I make that form into a sub form on the main form it works fine.
so
I'm confused. the image is an ole object I guess

SELECT PeopleID, Image, PicID, ParentID FROM AdultPics_tbl

Gina Whipp said:
Okay, I think I may be asking this incorrectly...

You have a form thru which you insert pictures... How do you insert the
pictures? The code you show below simply opens the pictures form. If
that
is the form where you recieve the error then THAT form needs to have it's
RecordSource saved as a query.

--
Gina Whipp

"I feel I have been denied critical, need to know, information!" -
Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm

here is what the command button usese

Private Sub Command439_Click()
On Error GoTo Err_Command439_Click

Dim stDocName As String
Dim stLinkCriteria As String

stDocName = "ClientPictures_fm"

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

Exit_Command439_Click:
Exit Sub

Err_Command439_Click:
MsgBox Err.Description
Resume Exit_Command439_Click

End Sub


:

Error mesage?

Also, can you copy/paste the code the Command Button is using?

--
Gina Whipp

"I feel I have been denied critical, need to know, information!" -
Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm

it still didnt work, it does work if I make the picture form a
subform
and
enter pictures but it doesnnt work when I access it through a
command
button.


:

desireemm,

Okay now the error message...

This error can occur if the data you are attempting to save is
saving
to
a
Microsoft SQL Server 7.0 or earlier database and the RecordSource
for
the
subform is using an SQL select statement with fields pulled
directly
from
the
source table, and the table is using an Identity field set as its
primary
key.
*****To avoid this problem set the RecordSource property of the
subform
to a
table or a query.*****

Because of your version of SQL Server you will need to turn you
SELECT
statement into a QUERY. Make the QUERY the RecordSource of the
form.
To
do
that...

1. Go back to Design View of the Form and return to the
RecordSource
and
click the elipse button [...].
2. Once that window open press the SAVE button and name your query
and
save. Say "Yes" or "Okay" to all questions and try your insert
picture
again.

--
Gina Whipp

"I feel I have been denied critical, need to know, information!" -
Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm

ok Here is the Record source

SELECT [Parent ID], [Family ID], [Referral Location], [Referral
Date],
[Registration Date], [Student First Name], [Student SS#],
[Student
Last
Name], [Student Sex], Grade, Age, [Student Date of Birth], [Event
ID],
TANFreferral, TypeOfParticipant, RequiredHours,
SpecialInstructions,
Adult_Child, State, SSID, PeopleID, TANF, ServiceArea, Weekly,
Month,
ReferralStatus, TanfStaffMakeReferal, Message, Phone,
StateStudentID,
TribalAfflilation, StudentCity, StudentState, StudentZip,
StudentAddress,
DateReleased, StudentRelease, ParentRelease, ScannedDocuments,
EmailAddress,
Enrollmentstatus, MaritalStatus, Vetran, TanfSpouseName,
TanfSpouseSocial,
PntID, Pictures FROM TANFParticipants_view

:

Okay, that s not what I want...

Go to the form which you use to enter the pictures (in the
Access
database)
Go to Design View of that form and pull up the properties
In the Properties section at the top it will RecordSource...
copy
and
paste
that here.

--
Gina Whipp

"I feel I have been denied critical, need to know,
information!" -
Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm

message
I hope I am understanding you. this is the record source
Picture is an Image, PicID is Interget (Identiy/SqL
Autonumber)
only
parent
is nvarchar (50)

SELECT Picture, PicID, PeopleID, [Parent ID] FROM
TanfPictures_tbl

:

And the RecordSoirce of the form?

--
Gina Whipp

"I feel I have been denied critical, need to know,
information!" -
Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm

message
I'm sorry Its Access 2007 with SQL server 2005 as the
engine.
Yes
the
pictures are stored in a table which only stores pics

:

desireemm,

We're going to need a little help here...

Access version?
Are you, in fact, using SQL Server 7.0 or earlier or
another
version?
Are you storing the pictures in the database or rather
trying
to
store
them
in the database?
What is the RecordSource of the form?

....that should get us started.

--
Gina Whipp

"I feel I have been denied critical, need to know,
information!" -
Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm

message
Hi all I have a table called Pictures_tbl that has a one
to
many
relationship
with a parent table called People_tbl. Every time I
enter a
picture
into
the
form where the Pictures_tbl is I get this error message.
Can
anyone
help.


This error can occur if the data you are attempting to
save
is
saving
to a
Microsoft SQL Server 7.0 or earlier database and the
RecordSource
for
the
subform is using an SQL select statement with fields
pulled
directly
from
the
source table, and the table is using an Identity field
set
as
its
 

Ask a Question

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

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

Ask a Question

Top