473,325 Members | 2,785 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,325 software developers and data experts.

Save a new form in MsAcess in a multiuser database will open

I am creating a new form(s) in MsAcess while it is open by more then one users
I have no trouble
Expand|Select|Wrap|Line Numbers
  1. '------------------------------------------------------------
  2. ' Module    : Create_the_Employee_Tables_and_Forms
  3. ' DateTime  : 10/02/2007
  4. ' Author    : John C Devonshire
  5. ' Purpose   : Create the Employee Tables and Forms
  6. '------------------------------------------------------------
  7. Sub Create_the_Employee_Tables_and_Forms()
  8. '**** Resetting switches
  9. On Error GoTo Err_Create_the_Employee_Tables_and_Forms
  10. strNameSub = "Create_the_Employee_Tables_and_Forms"
  11. 'Call AutoComments_Sub
  12.                 DoCmd.SetWarnings False
  13.             If intNumber_Next < 6 Then
  14. '*************************************************************
  15. '**** WE MUST MAKE SURE THE INPUT TABLES ARE CLEARED OF DATA *
  16. '*************************************************************
  17.     Call Clear_New_User_Table
  18. strNameSub = "Create_the_Employee_Tables_and_Forms"
  19. '*************************************************************
  20. '**** CREATE THE FORMS AND TABLES BY USER NUMBER             *
  21. '*************************************************************
  22. strUserNumber_TMP(intNumber_Current) = strUserNumber & "_" & intNumber_Next & "_TMP"
  23.                 DoCmd.CopyObject , strUserNumber_TMP(intNumber_Current), acTable, "EDU_New_User_" & intNumber_Next & "_TBL"
  24. strUserNumber_FRM(intNumber_Current) = strUserNumber & "_" & intNumber_Next & "_FRM"
  25.                 DoCmd.CopyObject , strUserNumber_FRM(intNumber_Current), acForm, "EDU_New_User_" & intNumber_Next & "_FRM"
  26.             Else
  27.                 DoCmd.CopyObject , strUserNumber_TBL, acTable, "EDU_Returning_User_TBL"
  28.             End If
  29.                 DoCmd.SetWarnings True
  30.                 DoCmd.Restore
  31.     Call Get_Forms_And_Tables
  32. Exit_Create_the_Employee_Tables_and_Forms:
  33.     Exit Sub
  34. Err_Create_the_Employee_Tables_and_Forms:
  35. MsgBox err.Number
  36. MsgBox err.DESCRIPTION
  37.     Call AutoErrorMsgbox_Sub
  38.     Resume Exit_Create_the_Employee_Tables_and_Forms
  39. End Sub
  40.  
when there is only one user

and no trouble with the table when there are multiusers

but error 2501 appears with the form copy in multiuser envirnoment

What am I missing

Thanks
Oct 12 '07 #1
1 1460
nico5038
3,080 Expert 2GB
It should be possible to open multiple instances of a form.
I've read about this in chapter 2 of the Access CookBook.
Check the sample database 02-11.MDB from the Chapter2 zipfile that can be downloaded from:
http://examples.oreilly.com/accesscook/CDROM/

Nic;o)
Nov 17 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Andras Gilicz | last post by:
Hi VB fans I'm working on a relatively large project in VB6 with about a dozen forms, including graphs, labels, text boxes, etc. The software itself is actually a flow simulator with more or...
6
by: Clay Beatty | last post by:
When you create database diagrams in Enterprise Manager, the details for constructing those diagrams is saved into the dtproperties table. This table includes an image field which contains most of...
4
by: Pablo | last post by:
At my current job I've been tasked with maintaining a very old C++ application written largely in ANSI c++ in what I believe to be with an old DOS based Borland compiler. I'm trying to add a...
5
by: Carl | last post by:
Please can anyone tell me how I can create a macro to save the results of a query as an excel file? The query is called Student List and I would like to save it to "My Documents". We have had...
2
by: marifusman | last post by:
Acees 2.0 application when user run application it give following error. The database is opened by user "Admin" on machine "abc". you can not open this database exclusively. Please help me...
2
by: lsloan | last post by:
Hi! I have a reoccuring problem with one of my databases where forms will occasionally become corrupted. Since I have backup copies of my production databases, it is easy to recover from using...
1
by: waddley | last post by:
I have a client who wants to have Access ask to save changes anytime data is changed or added into the database. I'm not really an Access guy, I actually run their servers, but have been dropped...
4
by: tarafinlay | last post by:
Hi all, I am new to access and am finding it a bit unintuitive having worked with SQL server in the past... And I am in a bit of a hurry because my employer wants me to crank something out which...
5
by: terrybell105 | last post by:
I downloaded Stephan's utility from his website but can't get it to work - or maybe I'm not driving it properly! The form works OK with the existing 3 "views" - I can switch between them and they...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.