-----Original Message-----
I need for access to open my input form as a new record, however if I have
the form pulling information off of a query vs a table is keeps giving me an
error of "You can't go toi that specific record". Is there a way to get
access to create a new record while using a query?
.
I'm Not sure what vesion of access you are using and
correct me if I'm wrong But if you are using Access 2000
and beyond you can set the forms Data Entry Property to
yes and the form will open for data entry only at a new
record nor matter if you use a Table or a query as your
souce.
Here's a bit of code I Uuesd to update a record using DAO
Dim rcdContacts As DAO.Recordset
Set rcdContacts = CurrentDb.OpenRecordset("SELECT * From
[Contacts]")
rcdContacts.AddNew 'opens the record set for new Entry
rcdContacts![Contact_Name] = Me.ConName
rcdContacts![Contact_AddressLn1] = Me.AddressLn1
rcdContacts![Contact_AddressLn2] = Me.AddressLn2
rcdContacts![Contact_AddressLn3] = AddressLn3
rcdContacts![Contact_postcode] = Me.postcode
rcdContacts![Phone Number] = PhoneNumber
rcdContacts![Mobile_No1] = Me.MobileNo1
rcdContacts![Mobile_no2] = Me.MobileNo2
rcdContacts![Mobile_No3] = Me.MobileNo3
rcdContacts![Email_Address] = Me.EmailAddress
rcdContacts![Customer_ID] = Me.Customer_ID
rcdContacts.Update ' updates the recordset to the
contacts table
Anything with Me. in front of it is a unbound textbox of
my input form
I hope this is of use to you