Hi Everyone,
I done a lot of reading and I find I'm more confused than ever.
I have an ADP frontend with a SQL Server 2k Backend. I created a form to enter new records into a table. What would be the best way for users to enter new records without directly compromising the table? My understanding is that the record source of a form should not be set directly to the table.
This form is for creating new records only. They won't need to have any data returned.
I created a stored procedure to INSERT a record but I'm a little lost after that point.
CREATE PROC NEW_STUDENT_RECORD AS
INSERT dbo.HunterEd_Student_Registration_Table (LastName, FirstName, MI, Generations,
StreetAddress, City, State, ZipCode, Phone,FinalGrade)
VALUES ('DOE', 'JOHN', 'A', 'SR', '1205 FALSE DR', 'NOWHERE', 'TN', '33522',
'5555555555','S')
This works fine from Query Analyzer but everytime a record needed to be added, I would have to go in and change the values myself, DOH!
Where do I go from here? REALLLLLY don't know what I doing!!!!
Thanks for the help and sorry for the desperation in my tone.
Tracy
I done a lot of reading and I find I'm more confused than ever.
I have an ADP frontend with a SQL Server 2k Backend. I created a form to enter new records into a table. What would be the best way for users to enter new records without directly compromising the table? My understanding is that the record source of a form should not be set directly to the table.
This form is for creating new records only. They won't need to have any data returned.
I created a stored procedure to INSERT a record but I'm a little lost after that point.
CREATE PROC NEW_STUDENT_RECORD AS
INSERT dbo.HunterEd_Student_Registration_Table (LastName, FirstName, MI, Generations,
StreetAddress, City, State, ZipCode, Phone,FinalGrade)
VALUES ('DOE', 'JOHN', 'A', 'SR', '1205 FALSE DR', 'NOWHERE', 'TN', '33522',
'5555555555','S')
This works fine from Query Analyzer but everytime a record needed to be added, I would have to go in and change the values myself, DOH!
Where do I go from here? REALLLLLY don't know what I doing!!!!
Thanks for the help and sorry for the desperation in my tone.
Tracy