Selasa, 30 April 2013

[MS_AccessPros] Re: Remote shut down of a Front End db

 

John

It might have been the corruption. There is software out there that will sometimes unlock an .LDB file so you can delete it. The one I use is at http://ccollomb.free.fr/unlocker

If that doesn't unlock it your network guy should be able to do it. Otherwise, if it is possible call someone to reboot the user's computer. That should free up the LDB file.

Bill

--- In MS_Access_Professionals@yahoogroups.com, "jfakes.rm" <jfakes@...> wrote:
>
> Bill,
> I use the InactiveShutdown in all of my databases and it's been a life saver. Some users complain about getting kicked out after 30 minutes (my default) but I tell them its a security concern. In this example, I had a user log on remotely (from a wireless connection) and the db corrupted. I have a "keep open" form that keeps a permanent connection open to the backend to speed things up. Well the user went to lunch and when I tried to work in the be, I couldn't because Access said someone was using it. I tried to delete the .ldb and the users frontend so I could do my work but no luck. So I was trying to see if I could automate kicking the user out of the frontend so I could do some work when I found out the user was out to lunch. I guess since the fe became corrupt, the inactive shutdown didn't work, very strange.
>
> John F
>
> --- In MS_Access_Professionals@yahoogroups.com, "Bill Mosca" <wrmosca@> wrote:
> >
> > John
> >
> > There is a sample database in our files called InactiveShutdown. It includes forms and shows how to use a timer event to check if the database has been idle for a given time. If so, the database closes itself.
> >
> > Regards,
> > Bill Mosca, Founder - MS_Access_Professionals
> > http://www.thatlldoit.com
> > Microsoft Office Access MVP
> > https://mvp.support.microsoft.com/profile=C4D9F5E7-BB03-4291-B816-64270730881E
> > My nothing-to-do-with-Access blog
> > http://wrmosca.wordpress.com
> >
> >
> >
> > --- In MS_Access_Professionals@yahoogroups.com, "jfakes.rm" <jfakes@> wrote:
> > >
> > > I've seen processes on how to remotely close a frontend but I thought I'd ask the experts on this site as to the best way to do this.
> > >
> > > It happened again yesterday, I had a user log into a frontend and edit a form (I know, don't let users edit forms, but thats the way the db was set up. I also know not to share a fe with more than one user, but...) Anyway, the user walked away from her computer leaving the fe locked up. The other user tried to get into the db but got the dreaded admin locked error. I suggested adding another fe in, but eventually the user closed the db and the issue was resolved.
> > >
> > > In the future if this happens, I want to be able to safely close that frontend. Whats the best way to do this remotely? I do not have special permissions on the server to close it.
> > >
> > > John F
> > >
> >
>

__._,_.___
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (12)
Recent Activity:
MARKETPLACE


.

__,_._,___

[MS_AccessPros] Re: Remote shut down of a Front End db

 

Bill,
I use the InactiveShutdown in all of my databases and it's been a life saver. Some users complain about getting kicked out after 30 minutes (my default) but I tell them its a security concern. In this example, I had a user log on remotely (from a wireless connection) and the db corrupted. I have a "keep open" form that keeps a permanent connection open to the backend to speed things up. Well the user went to lunch and when I tried to work in the be, I couldn't because Access said someone was using it. I tried to delete the .ldb and the users frontend so I could do my work but no luck. So I was trying to see if I could automate kicking the user out of the frontend so I could do some work when I found out the user was out to lunch. I guess since the fe became corrupt, the inactive shutdown didn't work, very strange.

John F

--- In MS_Access_Professionals@yahoogroups.com, "Bill Mosca" <wrmosca@...> wrote:
>
> John
>
> There is a sample database in our files called InactiveShutdown. It includes forms and shows how to use a timer event to check if the database has been idle for a given time. If so, the database closes itself.
>
> Regards,
> Bill Mosca, Founder - MS_Access_Professionals
> http://www.thatlldoit.com
> Microsoft Office Access MVP
> https://mvp.support.microsoft.com/profile=C4D9F5E7-BB03-4291-B816-64270730881E
> My nothing-to-do-with-Access blog
> http://wrmosca.wordpress.com
>
>
>
> --- In MS_Access_Professionals@yahoogroups.com, "jfakes.rm" <jfakes@> wrote:
> >
> > I've seen processes on how to remotely close a frontend but I thought I'd ask the experts on this site as to the best way to do this.
> >
> > It happened again yesterday, I had a user log into a frontend and edit a form (I know, don't let users edit forms, but thats the way the db was set up. I also know not to share a fe with more than one user, but...) Anyway, the user walked away from her computer leaving the fe locked up. The other user tried to get into the db but got the dreaded admin locked error. I suggested adding another fe in, but eventually the user closed the db and the issue was resolved.
> >
> > In the future if this happens, I want to be able to safely close that frontend. Whats the best way to do this remotely? I do not have special permissions on the server to close it.
> >
> > John F
> >
>

__._,_.___
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic ()
Recent Activity:
MARKETPLACE


.

__,_._,___

Re: [MS_AccessPros] Do

 

Jim,
Did you "hard wire" the folder to the actual server name and folder instead of a mapped drive? For example the LANs name is floyd and your document needs to go to the subfolder barber. Do you direct the output to \\floyd\barber or do you have it mapped to a drive for example M: so you might have it coded as M:\\floyd\barber? When I first started doing db work, I didn't realize I needed to resolve the path to the actual server name. I found out about it when a user couldn't get the document to save correctly.

My two cents worth, carry on.

John F

--- In MS_Access_Professionals@yahoogroups.com, Jim Wagner <luvmymelody@...> wrote:
>
> Duane and John,
>
> I just now figured it out. Apparently the path for the folder had changed. I will need to ask IT why they did that. It works now. 
>
>
> Thank You 
>  
> Jim Wagner
> ________________________________
>
>
>
> ________________________________
> From: Duane Hookom <duanehookom@...>
> To: Access Professionals Yahoo Group <ms_access_professionals@yahoogroups.com>
> Sent: Wednesday, April 24, 2013 12:20 PM
> Subject: RE: [MS_AccessPros] Do
>
>
>
>  
> Jim,
>
> How are you checking for data and canceling? 
>
> Duane Hookom MVP
> MS Access
>
> ----------------------------------------
> > From: luvmymelody@...
> >
> > John
> > There was no code in the ON No Data event. So I added the code to cancel the report based on Duane's suggestions and I still get an error
> >
> > Jim Wagner
> > ________________________________
> >
> >
> >
> > ________________________________
> > From: John Viescas <JohnV@...>
> >
> > Jim-
> >
> > The most common cause of this sort of error is a Cancel in the report's No
> > Data event procedure. If your filter results in no records, the On No Data
> > event will fire, and if you have a Cancel in that, then that generates the
> > 2501. I recommend adding an error trap in your code to ignore the 2501.
> >
> > John Viescas, Author
> >
> > -----Original Message-----
> > [mailto:MS_Access_Professionals@yahoogroups.com] On Behalf Of Duane Hookom
> >
> > Jim,
> >
> > I expect the issue might be no records in rpt_33NewHires that match the
> > where condition. Then your report probably has an issue or closes on no
> > records and causes the error in the calling form.
> >
> > I would check to see if the report's record source combined with the where
> > condition would return any records prior to attempting to open it.
> >
> > Duane Hookom MVP
> > MS Access
> >
> > ----------------------------------------
> > > From: luvmymelody@...
> > >
> > > I have this function that outputs a report as pdf to a folder location on
> > the network and the process stops on the the outputto line of code. I get a
> > run time error of 2501. The OutputTo action was canceled. When I hover over
> > the docmd.outputto in the highlighted line I see acOutput=3 which I am not
> > sure what that is. Below is part of the code and the last line is what is
> > highlighted. I have a feeling that it is the select statement that is
> > causing the issue. Is there a line in the select statement that I am
> > missing?
> > >
> > > Thank You
> > >
> > > Jim Wagner
> > >
> > > DoCmd.OpenReport "rpt_33NewHires", acViewPreview, _
> > > WhereCondition:="[Dept Id] IN (SELECT Department " & _ "FROM
> > > [tblPollyDepartments])"
> > > DoCmd.OutputTo acOutputReport, "rpt_33NewHires", "PDFFormat(*.pdf)",
> > > "\\Afwfs\AF\Services\UnivSrv\Admin Services\DATA MANAGEMENT
> > > SERVICES\Master PeopleSoft Tables\Repurpose Database\Department
> > > Reports\rpt_33FACMANNewHires.pdf", False, "", , acExportQualityPrint
>
>
> [Non-text portions of this message have been removed]
>

__._,_.___
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (7)
Recent Activity:
MARKETPLACE


.

__,_._,___

Re: [MS_AccessPros] #deleted in a field value

 

I have a similar problem with one of my databases. I have a memo field that randomly will get the #deleted error. So I rebuild the record then compact and repair the backend and it works fine until the next time. I can't figure out why just the one memo field is the field that corrupts, there isn't that much data in that field and the user is on a wired LAN. The user enters data such as appt date, lunch time, then enters any special instructions in the comment (memo) field. Everyonce and awhile, the comment field takes a dive. I can't replicate it, and I can't isolate it to one user.

John F

--- In MS_Access_Professionals@yahoogroups.com, "ghsclass65" <dyspoz2@...> wrote:
>
> John and Bill,
>
> The databases I've built do not have thousands of records for each "customer". In addition, when a delete function occurs a warning is always given in the form. I simply cannot be there to babysit the upkeep of a db and every deletion, but build in enough precautions to avoid mistakes that might be made. If cascading updates and deletions are not allowed, I would have to look at these things weekly or possibly daily, and I just want to build one that can be manageable by the user and not require my frequent attention.
>
> Russ
>
>
>
> --- In MS_Access_Professionals@yahoogroups.com, "Bill Mosca" <wrmosca@> wrote:
> >
> > John-
> > Exactly what I was getting at. It's a rare case when I want to allow deletion of a parent when child records exist. I'd rather force parent and child records to be marked as inactive.
> >
> > Bill
> >
> > --- In MS_Access_Professionals@yahoogroups.com, John Viescas <JohnV@> wrote:
> > >
> > > Russ-
> > >
> > > I think Bill is suggesting that code in forms should to the checking and
> > > deleting after prompting the user. Consider the relationship Customer ->
> > > Order -> OrderDetails. If a user deletes a customer in a database with
> > > Cascade Delete turned on, he or she may not realize that perhaps thousands
> > > of rows will also disappear. I personally use Cascade Delete often, but
> > > then I also write code to check and inform the user in the Delete event of
> > > every form. Something like: "This action will permanently delete customer
> > > XXXX along with 540 Orders and 1,659 Order Detail records. Are you SURE you
> > > want to proceed?"
> > >
> > > John Viescas, Author
> > > Microsoft Access 2010 Inside Out
> > > Microsoft Access 2007 Inside Out
> > > Microsoft Access 2003 Inside Out
> > > Building Microsoft Access Applications
> > > SQL Queries for Mere Mortals
> > > http://www.viescas.com/
> > > (Paris, France)
> > >
> > >
> > >
> > > -----Original Message-----
> > > From: MS_Access_Professionals@yahoogroups.com
> > > [mailto:MS_Access_Professionals@yahoogroups.com] On Behalf Of ghsclass65
> > > Sent: Monday, April 29, 2013 4:43 PM
> > > To: MS_Access_Professionals@yahoogroups.com
> > > Subject: Re: [MS_AccessPros] #deleted in a field value
> > >
> > > Bill,
> > >
> > > I do not understand your statement that relationships should not have
> > > cascading updates/deletes turned on. I build all my db that way and if I do
> > > not turn that feature on, then when someone deletes a record, it's related
> > > records in the connected tables are not deleted resulting in records that
> > > are in limbo with no corresponding records in other tables.
> > >
> > > Russ
> > >
> > >
> > >
> > > --- In MS_Access_Professionals@yahoogroups.com, "Bill Mosca" <wrmosca@>
> > > wrote:
> > > >
> > > > Ray
> > > >
> > > >
> > > >
> > > > The user who did not delete a record would be the one who sees the
> > > > #deleted. It wouldn't cause chaos. User1 would just have to refresh the
> > > form.
> > > >
> > > >
> > > >
> > > > Tampering with data directly in a table can be dangerous. Users should
> > > > have no way of opening tables. And relationships should not have
> > > > cascading updates/deletes turned on. Cascading stuff should only be
> > > > done by the DB administrator should it ever be necessary.
> > > >
> > > >
> > > >
> > > > When I mentioned the problem with network connectivity I was saying
> > > > the record itself could be corrected. By backing out of the form,
> > > > compacting the db and then opening the form again to re-enter the
> > > > data usually cleans up the corruption.
> > > >
> > > >
> > > >
> > > > Regards,
> > > >
> > > > Bill
> > > >
> > > >
> > > >
> > > > From: MS_Access_Professionals@yahoogroups.com
> > > > [mailto:MS_Access_Professionals@yahoogroups.com] On Behalf Of Ray
> > > > Sent: Saturday, April 27, 2013 9:54 AM
> > > > To: MS_Access_Professionals@yahoogroups.com
> > > > Subject: Re: [MS_AccessPros] #deleted in a field value
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > Hi Bill
> > > >
> > > > Thanks for that. The part of the database that is having these errors
> > > > has the structure tblContacts has many tblContactNotes. If User1 was
> > > > using the form correctly (form for Contact, subform for Notes) whilst
> > > > User2 went directly to the tblContactNotes and deleted a record -
> > > > would that cause chaos? Perhaps even #deleted?
> > > >
> > > > If I can come up with a plausible reason as to why some records are
> > > > being corrupted (data lost and replaced with #deleted) I'm sure that I
> > > > can change this culture of tampering with the tables and lock the database
> > > down.
> > > >
> > > > Finally, you said that network connectivity could be easily remedied -
> > > > is this an Access thing or a network server thing? Where should I start to
> > > look?
> > > >
> > > > Thanks for your help with this.
> > > > Ray
> > > >
> > > > --- In MS_Access_Professionals@yahoogroups.com
> > > > <mailto:MS_Access_Professionals%40yahoogroups.com> , "Bill Mosca"
> > > > <wrmosca@>
> > > > wrote:
> > > > >
> > > > > Ray
> > > > >
> > > > > The first person to open the database is not creating a lock file.
> > > > > It is a
> > > > locking file. This file is used by the JET/ACE engine to lock records
> > > > that are being edited, nothing more as long as the form in use has
> > > > it's record locking set to Edited Record. That keeps more than one
> > > > person at a time from changing a record.
> > > > >
> > > > > This is not the same as opening the database exclusively. If the
> > > > > first person
> > > > opens it exclusively or opens an object in design mode everyone else
> > > > is locked out. Exclusive mode actually locks out all others from the
> > > entire db file.
> > > > Splitting the database and making sure each user is using his own copy
> > > > of the front end will still protect the records, but will not lock
> > > > others out of the back end. That is because the back end is never opened
> > > directly by a user.
> > > > >
> > > > > Your multi-user db would benefit from splitting. It's very rare that
> > > > > a back
> > > > end table gets corrupt. Sometimes a record will corrupt due to loss of
> > > > network connectivity, but that sort of thing is easily remedied.
> > > > >
> > > > > Bill
> > > > >
> > > > > --- In MS_Access_Professionals@yahoogroups.com
> > > > <mailto:MS_Access_Professionals%40yahoogroups.com> , "Ray" <rayfrew@>
> > > wrote:
> > > > > >
> > > > > > Hi Bill
> > > > > >
> > > > > > The sad situation is that the database is not split, it's just one
> > > > > > file on a
> > > > server. Two people use it during the day by using Access to open the mdb
> > > file.
> > > > The first person to open the database will create the lock file - I'm
> > > > not sure what happens when the next person opens the database (whilst
> > > > the first person is still using it). Another aspect is that one person
> > > > in India connects to the server overnight and does some data input.
> > > > > >
> > > > > > I've suggested that the database be split but so far have been met
> > > > > > with
> > > > "Why? Everything's working and not causing a problem" - well now, perhaps
> > > it is.
> > > > Especially as one of the errors says that an update cannot be done
> > > > because someone else is updating - yet there is only one person using the
> > > database.
> > > > > >
> > > > > > If I split the database for them (data on server, forms etc on
> > > > > > clients) will
> > > > the first person to open the database still create a lock file and be
> > > > the "owner" or does it work differently? I know that splitting a
> > > > database is good practice but can you give me any pointers to the
> > > > types of problems splitting solves?
> > > > > >
> > > > > > Many thanks
> > > > > > Ray
> > > > > >
> > > > > > --- In MS_Access_Professionals@yahoogroups.com
> > > > <mailto:MS_Access_Professionals%40yahoogroups.com> , "Bill Mosca"
> > > > <wrmosca@>
> > > > wrote:
> > > > > > >
> > > > > > > Ray
> > > > > > > >I don't think that an index was removed in this case because
> > > > > > > >the users wouldn't know how to. However, it is more likely that
> > > > > > > >there was a network problem - apparently that happens
> > > > > > > >occasionally.
> > > > > > >
> > > > > > > I agree. Do you have the database in a split configuration with
> > > > > > > the tables
> > > > on a server and the forms, reports, queries etc on the users' local
> > > > drive? That would immensely reduce future corruption...at least as far
> > > > as the forms and queries are concerned .
> > > > > > >
> > > > > > > Bill
> > > > > > >
> > > > > > >
> > > > > > > --- In MS_Access_Professionals@yahoogroups.com
> > > > <mailto:MS_Access_Professionals%40yahoogroups.com> , "Ray" <rayfrew@>
> > > wrote:
> > > > > > > >
> > > > > > > > Hi Roberto
> > > > > > > >
> > > > > > > > I don't think that an index was removed in this case because
> > > > > > > > the users
> > > > wouldn't know how to. However, it is more likely that there was a
> > > > network problem - apparently that happens occasionally.
> > > > > > > >
> > > > > > > > Things have moved forward now, because the database has been
> > > > > > > > recovered
> > > > from a backup, data is being rekeyed and another backup is about to be
> > > taken.
> > > > Probably best to take more than one eh?
> > > > > > > >
> > > > > > > > Thanks for your help.
> > > > > > > > Ray
> > > > > > > >
> > > > > > > > --- In MS_Access_Professionals@yahoogroups.com
> > > > <mailto:MS_Access_Professionals%40yahoogroups.com> , "RobertoARV"
> > > > <robertoarv@>
> > > > wrote:
> > > > > > > > >
> > > > > > > > > Sometimes when it happens , an index is removed, then you
> > > > > > > > > need to
> > > > delete
> > > > > > > > > records showing deleted# mark , run a compact database ,
> > > > > > > > > recreate the
> > > > index
> > > > > > > > > and then create a blank database and import all objects from
> > > > > > > > > fixed database.
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > From: MS_Access_Professionals@yahoogroups.com
> > > > <mailto:MS_Access_Professionals%40yahoogroups.com>
> > > > > > > > > [mailto:MS_Access_Professionals@yahoogroups.com
> > > > <mailto:MS_Access_Professionals%40yahoogroups.com> ] On Behalf Of
> > > > RobertoARV
> > > > > > > > > Sent: Thursday, April 25, 2013 11:28 AM
> > > > > > > > > To: MS_Access_Professionals@yahoogroups.com
> > > > <mailto:MS_Access_Professionals%40yahoogroups.com>
> > > > > > > > > Subject: RE: [MS_AccessPros] #deleted in a field value
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > I have seen this for years with this database , often
> > > > > > > > > happens when you migrate same database to another upper
> > > > > > > > > version, you need to install
> > > > all the
> > > > > > > > > Microsoft jet service patches. it also occurs when you edit
> > > > > > > > > same
> > > > record in 2
> > > > > > > > > computers , it shows deleted in other computer but it get
> > > > > > > > > fix when you
> > > > run a
> > > > > > > > > requery in form or simply close form and open it again. it
> > > > > > > > > happens too
> > > > when
> > > > > > > > > a network disconnect occurs when you are editing a record.
> > > > > > > > >
> > > > > > > > > From: MS_Access_Professionals@yahoogroups.com
> > > > <mailto:MS_Access_Professionals%40yahoogroups.com>
> > > > > > > > > <mailto:MS_Access_Professionals%40yahoogroups.com>
> > > > > > > > > [mailto:MS_Access_Professionals@yahoogroups.com
> > > > <mailto:MS_Access_Professionals%40yahoogroups.com>
> > > > > > > > > <mailto:MS_Access_Professionals%40yahoogroups.com> ] On
> > > > > > > > > Behalf Of Bill
> > > > Mosca
> > > > > > > > > Sent: Thursday, April 25, 2013 9:39 AM
> > > > > > > > > To: MS_Access_Professionals@yahoogroups.com
> > > > <mailto:MS_Access_Professionals%40yahoogroups.com>
> > > > > > > > > <mailto:MS_Access_Professionals%40yahoogroups.com>
> > > > > > > > > Subject: RE: [MS_AccessPros] #deleted in a field value
> > > > > > > > >
> > > > > > > > > Ray
> > > > > > > > >
> > > > > > > > > The most likely cause is a corrupted index. It might have
> > > > > > > > > been saved
> > > > if you
> > > > > > > > > imported it into a blank database (which sometimes fixes bad
> > > indices).
> > > > I'm
> > > > > > > > > glad
> > > > > > > > > there was a backup, though. That was good thinking on your
> > > > > > > > > friend's
> > > > side.
> > > > > > > > >
> > > > > > > > > Regards,
> > > > > > > > > Bill Mosca,
> > > > > > > > > Founder, MS_Access_Professionals That'll do IT
> > > > > > > > > <http://thatlldoit.com/> http://thatlldoit.com MS Access MVP
> > > > > > > > >
> > > > > > > > >
> > > > <https://mvp.support.microsoft.com/profile=C4D9F5E7-BB03-4291-B816-642
> > > > 707308
> > > > > > > > > 81E>
> > > > > > > > >
> > > > https://mvp.support.microsoft.com/profile=C4D9F5E7-BB03-4291-B816-6427
> > > > 073088
> > > > > > > > > 1E
> > > > > > > > >
> > > > > > > > > My Nothing-to-do-with Access blog
> > > > > > > > >
> > > > > > > > > <http://wrmosca.wordpress.com> http://wrmosca.wordpress.com
> > > > > > > > >
> > > > > > > > > From: MS_Access_Professionals@yahoogroups.com
> > > > <mailto:MS_Access_Professionals%40yahoogroups.com>
> > > > > > > > > <mailto:MS_Access_Professionals%40yahoogroups.com>
> > > > > > > > > <mailto:MS_Access_Professionals%40yahoogroups.com>
> > > > > > > > > [mailto:MS_Access_Professionals@yahoogroups.com
> > > > <mailto:MS_Access_Professionals%40yahoogroups.com>
> > > > > > > > > <mailto:MS_Access_Professionals%40yahoogroups.com>
> > > > > > > > > <mailto:MS_Access_Professionals%40yahoogroups.com> ] On
> > > > > > > > > Behalf Of Ray
> > > > > > > > > Sent: Thursday, April 25, 2013 5:39 AM
> > > > > > > > > To: MS_Access_Professionals@yahoogroups.com
> > > > <mailto:MS_Access_Professionals%40yahoogroups.com>
> > > > > > > > > <mailto:MS_Access_Professionals%40yahoogroups.com>
> > > > > > > > > <mailto:MS_Access_Professionals%40yahoogroups.com>
> > > > > > > > > Subject: [MS_AccessPros] #deleted in a field value
> > > > > > > > >
> > > > > > > > > Can you shed some light on this mystery? A friend has an
> > > > > > > > > Access 2003
> > > > db and
> > > > > > > > > one
> > > > > > > > > table has some rows with #deleted in each field rather than
> > > > > > > > > the data
> > > > that
> > > > > > > > > used
> > > > > > > > > to be there. I suspect that they have used the "delete
> > > > > > > > > record" button
> > > > from
> > > > > > > > > the
> > > > > > > > > toolbar to delete a few rows (I know, not a good idea) and
> > > > > > > > > that
> > > > something
> > > > > > > > > went
> > > > > > > > > wrong. When a query runs on this table it returns an error
> > > > > > > > > saying that
> > > > a
> > > > > > > > > record
> > > > > > > > > has been deleted and then stops dead.
> > > > > > > > >
> > > > > > > > > We recovered the database from a backup and life has moved on.
> > > > However, I've
> > > > > > > > > never seen this before, have you?
> > > > > > > > >
> > > > > > > > > Many thanks
> > > > > > > > > Ray
> > > > > > > > >
> > > > > > > > > [Non-text portions of this message have been removed]
> > > > > > > > >
> > > > > > > > > [Non-text portions of this message have been removed]
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > [Non-text portions of this message have been removed]
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > [Non-text portions of this message have been removed]
> > > >
> > >
> > >
> > >
> > >
> > > ------------------------------------
> > >
> > > Yahoo! Groups Links
> > >
> >
>

__._,_.___
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (20)
Recent Activity:
MARKETPLACE


.

__,_._,___

RE: [MS_AccessPros] Failed update query

 

Robin-

Are you able to define a Unique or Primary key on ClubName in ClubGmail?
That should fix it.

John Viescas, Author
Microsoft Access 2010 Inside Out
Microsoft Access 2007 Inside Out
Microsoft Access 2003 Inside Out
Building Microsoft Access Applications
SQL Queries for Mere Mortals
http://www.viescas.com/
(Paris, France)

-----Original Message-----
From: MS_Access_Professionals@yahoogroups.com
[mailto:MS_Access_Professionals@yahoogroups.com] On Behalf Of Robin Chapple
Sent: Tuesday, April 30, 2013 1:23 PM
To: MS_Access_Professionals@yahoogroups.com
Subject: RE: [MS_AccessPros] Failed update query

Thanks John,

At 30/04/2013 05:19 PM, you wrote:

>Can you delete rows that have no ClubName in ClubGmail, define a
>Primary Index on ClubName, then run the query?

The query will still not run but the error message does not appear.
In the view mode it is not updateable.

>Why do you have rows in ClubGMail
>with no ClubName?

That is because I did not check the table after the data was imported from a
CSV file. I'm still learning! There are no empty rows now.

Regards,

Robin Chapple

>-----Original Message-----
>From: MS_Access_Professionals@yahoogroups.com
>[mailto:MS_Access_Professionals@yahoogroups.com] On Behalf Of Robin
>Chapple
>Sent: Tuesday, April 30, 2013 8:58 AM
>To: MS_Access_Professionals@yahoogroups.com
>Subject: RE: [MS_AccessPros] Failed update query
>
>John,
>
>As I see it the join, matching, is on 'ClubName'.
>
>JOIN tClubs ON ClubGmail.ClubName = tClubs.ClubName
>
>The recordset 'ClubGmail' is a list of club names with an email address.
>
>I need to take the data from the 'email' field in the recordset 'ClubGmail'
>and add it to the field 'email' in "tClubs"
>
>I aplogise that I am not good at describing this,
>
>Regards,
>
>Robin
>
>
>At 30/04/2013 04:30 PM, you wrote:
> >Robin-
> >
> >Here's what your original query is doing:
> >
> >1) All rows from ClubGMail are returned
> >
> >2) Any rows in tClubs that have a matching email value are returned
> >
> >3) The matching value email value from tClubs is copied to ClubGMail
> >
> >Because you're already matching on email, nothing happens.
> >
> >Is the ID field in ClubGMail the same as ClubID in tClubs? If so,
> >you should join on that. If not, then please explain what you're trying
to do.
> >
> >John Viescas, Author
> >Microsoft Access 2010 Inside Out
> >Microsoft Access 2007 Inside Out
> >Microsoft Access 2003 Inside Out
> >Building Microsoft Access Applications SQL Queries for Mere Mortals
> >http://www.viescas.com/ (Paris, France)
> >
> >
> >
> >-----Original Message-----
> >From: MS_Access_Professionals@yahoogroups.com
> >[mailto:MS_Access_Professionals@yahoogroups.com] On Behalf Of Robin
> >Chapple
> >Sent: Tuesday, April 30, 2013 8:06 AM
> >To: MS_Access_Professionals@yahoogroups.com
> >Subject: RE: [MS_AccessPros] Failed update query
> >
> >Thanks Duane,
> >
> >At 30/04/2013 02:03 PM, you wrote:
> > >Your query is not updateable since the join doesn't involve a
> > >primary key/foreign key relationship.
> > >
> > >Can you create a UNIQUE index on ClubGmail.ClubName?
> >
> >Error message says " Index or primary key cannot contain a null value".
> >
> >Does this refer to the space in some names?
> >
> >Regards,
> >
> >Robin
> >
> > > > To: MS_Access_Professionals@yahoogroups.com
> > > > From: robinski@mymail.net.au
> > > > Date: Tue, 30 Apr 2013 13:49:54 +1000
> > > > Subject: RE: [MS_AccessPros] Failed update query
> > > >
> > > > Thanks Duane,
> > > >
> > > > At 30/04/2013 12:41 PM, you wrote:
> > > > >What are the primary and foreign keys?
> > > >
> > > > I have not used the term foreign key before.
> > > >
> > > > Primary key in ClubsEmail is 'ID"
> > > >
> > > > Primary key in tClubs is "ClubID"
> > > >
> > > > >If you change the query to a regular select query, can you
> > > > >update the tClubs.Email column?
> > > >
> > > > No!
> > > >
> > > > Robin Chapple
> > > >
> > > >
> > > > > > To: MS_Access_Professionals@yahoogroups.com
> > > > > > From: robinski@mymail.net.au
> > > > > > Date: Tue, 30 Apr 2013 10:08:35 +1000
> > > > > > Subject: [MS_AccessPros] Failed update query
> > > > > >
> > > > > > I have an update query that does not execute.
> > > > > >
> > > > > > Just one field is to updated from another table. it does not
> > > > > > give an error message and it foes not update!
> > > > > >
> > > > > > UPDATE ClubGmail LEFT JOIN tClubs ON ClubGmail.ClubName =
> > > > > > tClubs.ClubName SET tClubs.Email = [ClubGmail]![email];
> > > > > >
> > > > > > What have I missed?
> > > > > >
> > > > > > Many thanks,
> > > > > >
> > > > > > Robin Chapple
> > > > >
> > > > >------------------------------------
> > > > >
> > > > >Yahoo! Groups Links
> > > > >
> > > > >
> > > > >
> > > >
> > > >
> > > >
> > > >
> > > > ------------------------------------
> > > >
> > > > Yahoo! Groups Links
> > > >
> > > >
> > > >
> > >
> > >
> > >------------------------------------
> > >
> > >Yahoo! Groups Links
> > >
> > >
> > >
> >
> >
> >
> >
> >------------------------------------
> >
> >Yahoo! Groups Links
> >
> >
> >
> >
> >
> >
> >------------------------------------
> >
> >Yahoo! Groups Links
> >
> >
> >
>
>
>
>
>------------------------------------
>
>Yahoo! Groups Links
>
>
>
>
>
>
>------------------------------------
>
>Yahoo! Groups Links
>
>
>

------------------------------------

Yahoo! Groups Links

__._,_.___
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (10)
Recent Activity:
MARKETPLACE


.

__,_._,___