Connecting Tech Pros Worldwide Help | Site Map
 
 
LinkBack Thread Tools Search this Thread
  #1  
Old February 22nd, 2006, 07:55 AM
sajid_yusuf@yahoo.com
Guest
 
Posts: n/a
Default DoCmd.GoToRecord , , acNewRec

Hi

My MS-Access 2003 "Form" is bind to a SQL server 2000 table but I
wonder why doesn't it accept the following command and displays an
error that "You can't go to the specified record". It works well with
MS Access tables but creates problem when the backend table belongs to
SQL server :

DoCmd.GoToRecord , , acNewRec


Can anyone help me with solving this problem.


cheers!!!




  #2  
Old February 22nd, 2006, 08:55 AM
Br@dley
Guest
 
Posts: n/a
Default Re: DoCmd.GoToRecord , , acNewRec

sajid_yusuf@yahoo.com wrote:[color=blue]
> Hi
>
> My MS-Access 2003 "Form" is bind to a SQL server 2000 table but I
> wonder why doesn't it accept the following command and displays an
> error that "You can't go to the specified record". It works well with
> MS Access tables but creates problem when the backend table belongs to
> SQL server :
>
> DoCmd.GoToRecord , , acNewRec
>
>
> Can anyone help me with solving this problem.
>
>
> cheers!!![/color]

Is the new record icon enabled on the form?

What is your recordsource?

Have you set an UniqueTable?

I know in A2000 you had to do some tricks to get your recordset to be
updable... (but that was released before SQL2000).
--
regards,

Br@dley


  #3  
Old February 22nd, 2006, 04:25 PM
Larry Linson
Guest
 
Posts: n/a
Default Re: DoCmd.GoToRecord , , acNewRec

Does the SQL Server table have a primary key defined? (I suspect it does if
you can update existing records.) Can you open the Table in Datasheet View
and add a new Record? (If not, then it is likely a matter of user
permissions in SQL Server.)

Larry Linson
Microsoft Access MVP

<sajid_yusuf@yahoo.com> wrote in message
news:1140594075.314470.224480@f14g2000cwb.googlegr oups.com...[color=blue]
> Hi
>
> My MS-Access 2003 "Form" is bind to a SQL server 2000 table but I
> wonder why doesn't it accept the following command and displays an
> error that "You can't go to the specified record". It works well with
> MS Access tables but creates problem when the backend table belongs to
> SQL server :
>
> DoCmd.GoToRecord , , acNewRec
>
>
> Can anyone help me with solving this problem.
>
>
> cheers!!!
>[/color]


  #4  
Old February 22nd, 2006, 11:45 PM
Br@dley
Guest
 
Posts: n/a
Default Re: DoCmd.GoToRecord , , acNewRec

Larry Linson wrote:[color=blue]
> Does the SQL Server table have a primary key defined? (I suspect it
> does if you can update existing records.) Can you open the Table in
> Datasheet View and add a new Record? (If not, then it is likely a
> matter of user permissions in SQL Server.)[/color]

Of a BIT field that doesn't have a default value.....
[color=blue]
> Larry Linson
> Microsoft Access MVP
>
> <sajid_yusuf@yahoo.com> wrote in message
> news:1140594075.314470.224480@f14g2000cwb.googlegr oups.com...[color=green]
>> Hi
>>
>> My MS-Access 2003 "Form" is bind to a SQL server 2000 table but I
>> wonder why doesn't it accept the following command and displays an
>> error that "You can't go to the specified record". It works well with
>> MS Access tables but creates problem when the backend table belongs
>> to SQL server :
>>
>> DoCmd.GoToRecord , , acNewRec
>>
>>
>> Can anyone help me with solving this problem.
>>
>>
>> cheers!!![/color][/color]

--
regards,

Br@dley


 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 205,414 network members.