Hi all.
Having a bit of a problem with a form in Access. I have the table setup in SQL and have linked in Access via an ODBC.
I create a form using the fields to enter the data into however I'm getting errors when I use it that says:
ODBC call failed
[Microsoft][ODBC SQL Server Driver][SQL Server]The EXCUTE permission was denied on the objects 'sp_execute', database 'mysqlsystemresource', schema 'sys' (#299)
The field types I have in SQL are:
[ID] [int] IDENTITY(1,1)NOTNULL,
Having a bit of a problem with a form in Access. I have the table setup in SQL and have linked in Access via an ODBC.
I create a form using the fields to enter the data into however I'm getting errors when I use it that says:
ODBC call failed
[Microsoft][ODBC SQL Server Driver][SQL Server]The EXCUTE permission was denied on the objects 'sp_execute', database 'mysqlsystemresource', schema 'sys' (#299)
The field types I have in SQL are:
[ID] [int] IDENTITY(1,1)NOTNULL,
Code:
[nvarchar][/SIZE][SIZE=2][COLOR=#808080][SIZE=2][COLOR=#808080]([/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]255[/SIZE][SIZE=2][COLOR=#808080][SIZE=2][COLOR=#808080])[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#808080][SIZE=2][COLOR=#808080]NULL,[/COLOR][/SIZE]
[/COLOR][/SIZE][SIZE=2][Person_Name] [nvarchar][/SIZE][SIZE=2][COLOR=#808080][SIZE=2][COLOR=#808080]([/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]255[/SIZE][SIZE=2][COLOR=#808080][SIZE=2][COLOR=#808080])[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#808080][SIZE=2][COLOR=#808080]NULL,[/COLOR][/SIZE]
[/COLOR][/SIZE][SIZE=2][Job_Role] [nvarchar][/SIZE][SIZE=2][COLOR=#808080][SIZE=2][COLOR=#808080]([/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]255[/SIZE][SIZE=2][COLOR=#808080][SIZE=2][COLOR=#808080])[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#808080][SIZE=2][COLOR=#808080]NULL,[/COLOR][/SIZE]
[/COLOR][/SIZE][SIZE=2][Organisation_name] [nvarchar][/SIZE][SIZE=2][COLOR=#808080][SIZE=2][COLOR=#808080]([/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]255[/SIZE][SIZE=2][COLOR=#808080][SIZE=2][COLOR=#808080])[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#808080][SIZE=2][COLOR=#808080]NULL,[/COLOR][/SIZE]
[/COLOR][/SIZE][SIZE=2][Em_address] [nvarchar][/SIZE][SIZE=2][COLOR=#808080][SIZE=2][COLOR=#808080]([/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]255[/SIZE][SIZE=2][COLOR=#808080][SIZE=2][COLOR=#808080])[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#808080][SIZE=2][COLOR=#808080]NULL,[/COLOR][/SIZE]
[/COLOR][/SIZE][SIZE=2][telephone_number] [nvarchar][/SIZE][SIZE=2][COLOR=#808080][SIZE=2][COLOR=#808080]([/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]255[/SIZE][SIZE=2][COLOR=#808080][SIZE=2][COLOR=#808080])[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#808080][SIZE=2][COLOR=#808080]NULL,[/COLOR][/SIZE]
[/COLOR][/SIZE][SIZE=2][DS_MH] [bit] [/SIZE][SIZE=2][COLOR=#808080][SIZE=2][COLOR=#808080]NULL,[/COLOR][/SIZE]
[/COLOR][/SIZE][SIZE=2][DS_IA] [bit] [/SIZE][SIZE=2][COLOR=#808080][SIZE=2][COLOR=#808080]NULL,[/COLOR][/SIZE]
[/COLOR][/SIZE][SIZE=2][DS_CN] [bit] [/SIZE][SIZE=2][COLOR=#808080][SIZE=2][COLOR=#808080]NULL,[/COLOR][/SIZE]
[/COLOR][/SIZE][SIZE=2][DS_COM] [bit] [/SIZE][SIZE=2][COLOR=#808080][SIZE=2][COLOR=#808080]NULL,[/COLOR][/SIZE]
[/COLOR][/SIZE][SIZE=2][CAT_IND] [bit] [/SIZE][SIZE=2][COLOR=#808080][SIZE=2][COLOR=#808080]NULL,[/COLOR][/SIZE]
[/COLOR][/SIZE][SIZE=2][CAT_TRU] [bit] [/SIZE][SIZE=2][COLOR=#808080][SIZE=2][COLOR=#808080]NULL,[/COLOR][/SIZE]
[/COLOR][/SIZE][SIZE=2][CAT_COMM] [bit] [/SIZE][SIZE=2][COLOR=#808080][SIZE=2][COLOR=#808080]NULL,[/COLOR][/SIZE]
[/COLOR][/SIZE][SIZE=2][CAT_DH] [bit] [/SIZE][SIZE=2][COLOR=#808080][SIZE=2][COLOR=#808080]NULL,[/COLOR][/SIZE]
[/COLOR][/SIZE][SIZE=2][CAT_CH] [bit] [/SIZE][SIZE=2][COLOR=#808080][SIZE=2][COLOR=#808080]NULL,[/COLOR][/SIZE]
[/COLOR][/SIZE][SIZE=2][CAT_SYS] [bit] [/SIZE][SIZE=2][COLOR=#808080][SIZE=2][COLOR=#808080]NULL,[/COLOR][/SIZE]
[/COLOR][/SIZE][SIZE=2][CAT_OTHER] [bit] [/SIZE][SIZE=2][COLOR=#808080][SIZE=2][COLOR=#808080]NULL,[/COLOR][/SIZE]
[/COLOR][/SIZE][SIZE=2][ACTIVE_CONTACT] [bit] [/SIZE][SIZE=2][COLOR=#808080][SIZE=2][COLOR=#808080]NULL,[/COLOR][/SIZE]
[/COLOR][/SIZE][SIZE=2][INACTIVE_CONTACT_DATE] [nvarchar][/SIZE][SIZE=2][COLOR=#808080][SIZE=2][COLOR=#808080]([/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]255[/SIZE][SIZE=2][COLOR=#808080][SIZE=2][COLOR=#808080])[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#808080][SIZE=2][COLOR=#808080]NULL[/COLOR][/SIZE][/COLOR][/SIZE]
[SIZE=2][SIZE=2][COLOR=black]Which access converts to:[/COLOR][/SIZE][/SIZE]
[SIZE=2][COLOR=#808080][SIZE=2][COLOR=#808080][COLOR=black][ID] Autonumber[/COLOR][SIZE=2][SIZE=2][COLOR=black],[/COLOR][/SIZE]
[/SIZE][SIZE=2][COLOR=black][Code] text[/COLOR][/SIZE][SIZE=2][SIZE=2][COLOR=black],[/COLOR][/SIZE]
[/SIZE][SIZE=2][COLOR=black][Person_Name] text[/COLOR][/SIZE][SIZE=2][SIZE=2][COLOR=black],[/COLOR][/SIZE]
[/SIZE][SIZE=2][COLOR=black][Job_Role] text[/COLOR][/SIZE][SIZE=2][SIZE=2][COLOR=black],[/COLOR][/SIZE]
[/SIZE][SIZE=2][COLOR=black][Organisation_name] text[/COLOR][/SIZE][SIZE=2][SIZE=2][COLOR=black],[/COLOR][/SIZE]
[/SIZE][SIZE=2][COLOR=black][Em_address] text[/COLOR][/SIZE][SIZE=2][SIZE=2][COLOR=black],[/COLOR][/SIZE]
[/SIZE][SIZE=2][COLOR=black][telephone_number] text[/COLOR][/SIZE][SIZE=2][SIZE=2][COLOR=black],[/COLOR][/SIZE]
[/SIZE][SIZE=2][COLOR=black][DS_MH] yes/no[/COLOR][/SIZE][SIZE=2][SIZE=2][COLOR=black],[/COLOR][/SIZE]
[/SIZE][SIZE=2][COLOR=black][DS_IA] yes/no[/COLOR][/SIZE][SIZE=2][SIZE=2][COLOR=black],[/COLOR][/SIZE]
[/SIZE][SIZE=2][COLOR=black][DS_CN] yes/no[/COLOR][/SIZE][SIZE=2][SIZE=2][COLOR=black],[/COLOR][/SIZE]
[/SIZE][SIZE=2][COLOR=black][DS_COM] yes/no[/COLOR][/SIZE][SIZE=2][SIZE=2][COLOR=black],[/COLOR][/SIZE]
[/SIZE][SIZE=2][COLOR=black][CAT_IND] yes/no[/COLOR][/SIZE][SIZE=2][SIZE=2][COLOR=black],[/COLOR][/SIZE]
[/SIZE][SIZE=2][COLOR=black][CAT_TRU] yes/no[/COLOR][/SIZE][SIZE=2][SIZE=2][COLOR=black],[/COLOR][/SIZE]
[/SIZE][SIZE=2][COLOR=black][CAT_COMM] yes/no[/COLOR][/SIZE][SIZE=2][SIZE=2][COLOR=black],[/COLOR][/SIZE]
[/SIZE][SIZE=2][COLOR=black][CAT_DH] yes/no[/COLOR][/SIZE][SIZE=2][SIZE=2][COLOR=black],[/COLOR][/SIZE]
[/SIZE][SIZE=2][COLOR=black][CAT_CH] yes/no[/COLOR][/SIZE][SIZE=2][SIZE=2][COLOR=black],[/COLOR][/SIZE]
[/SIZE][SIZE=2][COLOR=black][CAT_SYS] yes/no[/COLOR][/SIZE][SIZE=2][SIZE=2][COLOR=black],[/COLOR][/SIZE]
[/SIZE][SIZE=2][COLOR=black][CAT_OTHER] yes/no[/COLOR][/SIZE][SIZE=2][SIZE=2][COLOR=black],[/COLOR][/SIZE]
[/SIZE][SIZE=2][COLOR=black][ACTIVE_CONTACT] yes/no[/COLOR][/SIZE][SIZE=2][SIZE=2][COLOR=black],[/COLOR][/SIZE]
[/SIZE][SIZE=2][COLOR=black][INACTIVE_CONTACT_DATE] text[/COLOR][/SIZE]
[SIZE=2][COLOR=black]Can anyone help me with this as i'm getting something wrong. It could I'm using field types that Access is having trouble with and can quite easily change them if needed. I need it in SQL as some of the fields are pulled from other tables in SQL and really I'm just trying to create an input screen for contacts. I do have a primary key defined when linking the tables on ID.[/COLOR][/SIZE]
[COLOR=#000000][/COLOR]
[COLOR=#000000]Using Access 2003 and SQL 2005.[/COLOR]
[SIZE=2][COLOR=black]Any help is much appreciated.[/COLOR][/SIZE]
[SIZE=2][COLOR=black]Thanks[/COLOR][/SIZE]
[/COLOR][/SIZE][/COLOR][/SIZE]
Last edited: