Значение свойства linkmasterfields вызывает ошибку return without gosub

Skip to content

  • View menu
  • View sidebar

Значение свойства LinkMasterFields вызывает ошибку: «Return without GoSub»

При вводе данных в форму базы Access 2007 неожиданно начало появляться сообщение об ошибке:

Значение свойства LinkMasterFields вызывает ошибку: «Return without GoSub»

Парадокс в том, что при вводе данных непосредственно в таблицу сообщение об ошибке не появляется. По-видимому, за время работы в самой базе произошел какой-то сбой. Проблема решилась удалением формы и созданием новой.

  • Remove From My Forums
  • Question

  • I have a form that has a subform. whenever, I attempt to add records to this subform I receive the following message: The LinkMaster Fields Property setting has produced this error: «Return without GoSub»   How can I correct this?

Answers

  • Hi NoviceVBAuser1775,

    «Return without GoSub» means that
    you have a Return statement that can’t be matched with a GoSub statement.

    Make sure your GoSub statement wasn’t inadvertently deleted.

    You can get more detail about this error from link below:
    Return without GoSub (Error 3)

    This error is runtime error and it is a code issue. It means that complie will not address this issue. I suggest that you check code to see whether the code is correctly. For example, the code below will throw this error if we commnet the code «Exit
    Sub»:

    Sub TestError()
    
    Debug.Print "begin.."
    GoSub label1
    
    Exit Sub 'comment this line will cause this issue
    
    label1:
    Debug.Print "1"
    label2:
    Debug.Print "2"
    Return
    End Sub

    If you still have problem fixing this issue, I suggest that you share with us the code snippet you are developing with.

    Hope it is helpful.

    Regards & Fei


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.

    Click
    HERE to participate the survey.

    • Edited by

      Friday, April 10, 2015 6:45 AM

    • Marked as answer by
      Fei XueMicrosoft employee
      Wednesday, April 15, 2015 12:23 PM

We have a complex form with a bunch of tabs and often multiple subforms per tab. It is undergoing a lot of work lately because we have introduced a join table in between two tables … definitely one of those things one wishes one had done up front! With one of these tabs, we are getting an error when trying to add a new record in the subform.

The LinkMasterFields property setting has produced this error: ‘Return Without GoSub’

This doesn’t make a lot of sense to me. First, the only piece of VB code on this form is under a Send E-mail button, which works fine on an existing record. Second, I have checked the properties of the subform and the Master link properly points to ID and the Child Link points to CompanyID. ID in the main query is the Company.ID and CompanyID in the child is CompanyID is the field of that name in the PersonCompany join table.

Any suggestions about what to look for?

Read these next…

  • Curated Snap! -- Space Submarines, Brain Waves, Chernobyl Wind Farm, Real-Life Asteroids

    Snap! — Space Submarines, Brain Waves, Chernobyl Wind Farm, Real-Life Asteroids

    Spiceworks Originals

    Your daily dose of tech news, in brief.

    Welcome to the Snap!

    Flashback: September 21, 1996: Programming Error May Have Contributed to Plane Crash (Read more HERE.)

    Bonus Flashback: September 21, 2003: Galileo Completes Jupiter Mission (Re…

  • Curated Large amount of spam recently getting around filters. How to stop these?

    Large amount of spam recently getting around filters. How to stop these?

    Security

    Got a HUGE uptick in spam emails recently, and they are actually getting through. The spam is coming from gibberish@gibberish.onmicrosoft.com and coming from IPs 40.107.X.X  which after a quick search is Microsoft IPs…I am not able to just filter the do…

  • Curated Old invoicing / tracking software

    Old invoicing / tracking software

    Software

    Hi wonderful people.  I hope someone may be able to assist with a rather perplexing issue.We started working with a company a few years ago providing their IT support.They use a very old (20 years plus) software package which they had built from scratch. …

  • Curated Receive 250 Spicepoints and $100 Amazon GC for your participation!

    Receive 250 Spicepoints and $100 Amazon GC for your participation!

    Hardware

    Spiceworks is looking for a couple of Lenovo advocates from the community to participate in a case study! We’re looking for those who also have experience using Apple Laptops to draw on comparisons for the case study.

    We’d be asking for 30 minutes of …

  • Curated Spark! Pro series - 21st September 2023

    Spark! Pro series — 21st September 2023

    Spiceworks Originals

    Today in History: 1942 — The Superfortress bomber takes flight

    On September 21, 1942, the U.S. B-29 Superfortress makes its debut flight in Seattle, Washington. It was the largest bomber used in the war by any nation.
    The B-29 was conceived in 1939…

0 / 0 / 0

Регистрация: 23.06.2013

Сообщений: 4

1

23.06.2013, 20:24. Показов 4847. Ответов 4


Студворк — интернет-сервис помощи студентам

Создал новую форму, привязал к существующей форме, при создании новой строки в форме появляеться ошибка:

«Значение свойства LinkMasterFields вызывает ошибку: ‘Объект не содержит программируемый объект ‘unit»

Когда создаю новую новую запись без открытой связаной форми ошибки нет!

Может кто знает, как решить этот глюк.



0



Эксперт MS Access

26792 / 14471 / 3192

Регистрация: 28.04.2012

Сообщений: 15,782

23.06.2013, 20:39

2

@PulgYur, а что такое «unit«? Это поле на главной форме? Оно существует? В свойстве LinkMasterFields должно быть указано именно имя контрола формы, а не его поле-источник. Названия поля источника и контрола формы не обязательно должны совпадать.



1



0 / 0 / 0

Регистрация: 23.06.2013

Сообщений: 4

23.06.2013, 20:47

 [ТС]

3

Unit это название таблицы, на которую постоена форма



0



Эксперт MS Access

26792 / 14471 / 3192

Регистрация: 28.04.2012

Сообщений: 15,782

23.06.2013, 20:50

4

Цитата
Сообщение от PulgYur
Посмотреть сообщение

Unit это название таблицы, на которую постоена форма

Вы неправильно связали. В свойствах LinkMasterFields и LinkChildFields записываются НЕ таблицы, а поля форм. В LinkMasterFields имя поля на главной форме, а в LinkChildFields имя поля в подформе, связанное с полем главной формы.



0



0 / 0 / 0

Регистрация: 23.06.2013

Сообщений: 4

23.06.2013, 20:53

 [ТС]

5

где я могу увидеть свойства LinkMasterFields? очень давно не работал в access

Добавлено через 2 минуты
Ура получилось, спасибо большое!!!



0



IT_Exp

Эксперт

87844 / 49110 / 22898

Регистрация: 17.06.2006

Сообщений: 92,604

23.06.2013, 20:53

Помогаю со студенческими работами здесь

Запрос вызывает ошибку
Делаю запрос программно

Есть запрос
‘UPDATE users SET (type , login, password, name, phone,…

Макрос вызывает ошибку -9-
Кто подскажет?
В книге Book1.xls в яйчейке A1 вписано имя файла As36.xls При помоши макроса с…

Ajax — вызывает ошибку в IE
new Ajax(a.getProperty(‘href’),{method:’get’,update:’lightbox_content’,data:’tolightbox=’+1,…

Можно ли объекту присвоить значение свойства от другого свойства?
Здравствуйте! Подскажите пожалуйста.

var book = {
title:"Java Programming",
author:"John…

Искать еще темы с ответами

Или воспользуйтесь поиском по форуму:

5

SO something strange happened, I was cleaning up my database and deleted a button that honestly just closed the current form and opened a different datasheet. now whenever i try to select a field or do anything I get things like The LinkMasterFields property setting has produced this error: ‘Return without GoSub’ …i Dont really understand how this could all of a sudden happen

thanks for any input it would be greatly appreciated

  • ms-access-2007

asked Jan 2, 2014 at 15:01

skevthedev's user avatar

skevthedevskevthedev

4471 gold badge7 silver badges20 bronze badges

1 Answer

Problem Solved, Allthough i did delete the button the error was caused when i didnt delete the click event associated with the button. It is strange i think because i have most certainly deleted buttons before and didnt need to delete there click event scripts and everything still worked fine.

answered Jan 2, 2014 at 15:48

skevthedev's user avatar

skevthedevskevthedev

4471 gold badge7 silver badges20 bronze badges

Понравилась статья? Поделить с друзьями:

Интересное по теме:

  • Знаки ошибок опель астра
  • Значение сообщения об ошибке
  • Знаки ошибок на панели приборов ауди а6 с5
  • Значение слова роковая ошибка
  • Значение слова признавать свои ошибки

  • Добавить комментарий

    ;-) :| :x :twisted: :smile: :shock: :sad: :roll: :razz: :oops: :o :mrgreen: :lol: :idea: :grin: :evil: :cry: :cool: :arrow: :???: :?: :!: