Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access
|
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 26th, 2004, 08:00 AM
Authorized User
 
Join Date: Jun 2003
Posts: 98
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by sal
 Create a table with the latest version number. then create another exe either in VB or even access. Put a splash form just for looks and when it loads have the form check the table to see if there is a newer file in the network. If the there is, do a filecopy. do a search on this forum for filecopy or copyfile, i gave someone else all the steps for this about 2 months ago.

Remember fully qualify your sql code with ownername.object name syntax.



Sal
The users are running the adp file from a shared network drive. I copy the latest version of the adp file to that shared folder. Would I still need to do this "filecopy" procedure? Wouldn't they already have the latest version if they are running the adp file from the network drive?

slypunk
 
Old May 26th, 2004, 09:12 PM
sal sal is offline
Friend of Wrox
 
Join Date: Oct 2003
Posts: 702
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Are they able to share the ADP file? ADP files open exclusive by default, it is better to put it on each workstation.



Sal
 
Old May 28th, 2004, 08:11 AM
Authorized User
 
Join Date: Jun 2003
Posts: 98
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by sal
 Are they able to share the ADP file? ADP files open exclusive by default, it is better to put it on each workstation.



Sal
I got the database to work on one of the computers. But why is it not working on the others. I compared permissions and they are all the same.

slypunk
 
Old May 28th, 2004, 10:36 PM
sal sal is offline
Friend of Wrox
 
Join Date: Oct 2003
Posts: 702
Thanks: 0
Thanked 0 Times in 0 Posts
Default

If you are using a stored procedure to populate a form, you will not be able to update the recordset anyway. Try using an ADO recordset to set the recordsource of the form.



Sal
 
Old June 1st, 2004, 10:01 AM
Authorized User
 
Join Date: Jun 2003
Posts: 98
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by sal
 If you are using a stored procedure to populate a form, you will not be able to update the recordset anyway. Try using an ADO recordset to set the recordsource of the form.



Sal
Does that mean I should not use stored procedures as a record source? Then why is it only working on one machine?? Do you think it's the service pack that I need to update on their workstation?? They have the same version as I do. On the computer that works I updated the service pack and then changed the sps to dbo.name and it worked perfect. Do you suppose I need to do the same to the other workstations?

slypunk
 
Old June 5th, 2004, 01:59 PM
sal sal is offline
Friend of Wrox
 
Join Date: Oct 2003
Posts: 702
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Have you tried to log into the machines that do not work with your login? if yes and it works, then it is a permissions issue.
Do the computers where the ADP works belong to people that have different permission levels on the SQL Server than hte ones where the ADP does not work? if yes, again permissions.

An ado object will run as long as you have given permissions to the user. If the dbo.Storedprocedure1 is the recordsource to your stored procedure and you make the Recordsource just Storedprocedure1, Access will add the dbo.Stooredprocedure1 or Storedprocedure1(dbo), which is not the same as Storedprocedure1.

In ado as long as the user has rights to execute the stores procedure, it will run well, but the user "MUST HAVE RIGHTS" to the stored procedure.

if dbo.name work on one machine that had problems, changces are iot will work for all other computers, but you must give them an updated front end. Try to automate the distribution of your front end to ensure that you can propagate a fix easily.

I would use ADo simply because i know it works and also because if i am using a stored procedure either via ADo or other method, the data is not updateable anyway and i can re-use the same code over and over for my forms and reports.



Sal





Similar Threads
Thread Thread Starter Forum Replies Last Post
adp- stored query problem LeoTiger1 Access 0 June 13th, 2006 04:11 PM
Stored procedures won't work properly... eBilyboy SQL Server 2000 1 December 12th, 2005 11:25 AM
stored procedures in ADP do not work on other comp sherr8 SQL Server 2000 19 September 16th, 2004 10:29 AM
Use of "IF" in a ADP Stored Procedure Mickey123 Access 0 December 5th, 2003 01:53 AM
custom menus don't work with a shared adp Ash Access 3 August 12th, 2003 01:22 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.