keyongtech


  keyongtech > access.* > access.adp.sqlserver > 04/2008

 #1  
03-11-08, 06:12 PM
Bob
2007 .adp front ends connected to SQL 2005.
I frequently run into this when users are drilling into data on a DataSheet
form.
They may filter on a value in one column and when they try to apply the next
filter, they
get the above error. I use stored procs for all my forms. Procs using
input params in the
Form.InputParameters property seem to be the ones with the problems. I've
tried everything
I can think of. I'd really appreciate anyone that can shed any light on
this ...
thanks in advance,
bob.
 #2  
03-11-08, 07:48 PM
Bob
I was able to come up with a fix for this. I am sharing this in case anyone
else
bumps into this problem.

Make the form a subForm on another form.
Add a control that will contain the name of the CurrentUser.
Make the Master property of subForm = to tbCurrentUser
Make the Child property of the subForm = UserName in the Table (Used as
Recordset for the subForm)

From the Menu Form.
the button that opens the above Form & subForm
--will 1st Delete all recs in the target table where UserName =
tbCurrentUser.
--Insert Into table using the user's params and tbCurrentUser.

Now you have a resultset for the subForm that is a table as opposed to a
query.
The table is filtered via the Master/Child relationship.
--The user can now Sort and apply as many filters as desired to the
resultset.

hope this helps someone...
Bob.


"Bob" <bobmcc> wrote in message
news:4320
[..]
 #3  
04-09-08, 06:48 AM
mark.sjolin
Passing a parameter to a stored procedure without using the full
syntax for the stored procedure parameter can cause this problem.

For example, me.InputParameters="1" might work for a while but may
suddenly begin causing the error you described.

Instead, use me.InputParameters="@parm=1" where @parm is the name of
the stored procedure parameter being passed to the form.
 #4  
04-14-08, 09:43 PM
Bob
Thanks Mark..
I will give this a shot. It was driving me crazy. The workaround I
described works
perfectly but does require additional steps.
Thanks again for the reply.
bob.

<mark.sjolin> wrote in message
news:3b50
[..]
Similar Threads
Command line option syntax.error.type command for hlp/?

When i click on an html link inside an email i get the following error Command line option syntax.error.type command for hlp/?. Has anyone else had this problem if so how...

command line option syntax error.Type Command /? for help

when I run any programme setup down loaded from Microsoft,ie..MP10,PPviewer,Xlviewer,the message " command line option syntax error.Type Command /? for help" appears.How to...

Command line Syntax error - Type Command/? for Help

I get this message (with the header "Internet Explorer 6 Setup") every 30 to 60 seconds and it's becoming quite annoying lol Can anyone help???? I dont' know much about...

Command Line Option Syntax Error - Type Command /? for Help

Command Line Option Syntax Error - Type Command /? for Help I installed Mozilla Firefox browser, decised that I didn't like it and removed it. Now I get the above...

Command text was not set for the command object error And DoCmd.OpenQuery

Hello, I would really appreciate some help. I am still learning VBA and I feel like my brain is fried already. Below I am trying to run a query and do a loop. I actually get...


All times are GMT. The time now is 08:04 PM. | Privacy Policy