Running an UPDATE SQL QUERY within VBA using DAO Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)Run arbitrary INSERT INTO SQL Query using parametersSQL + VBA Populating Data in Cell RangeParameterized Query in Access SQLMatching between files and a list of filenames at scaleVBA to MS-Access SQL query set(s) and outputsMaking a report from payroll detailsMaking a report from payroll details part IIMS Access SQL query for active assigned casesVBA script to add formulas to Excel is running slowDuplicate Payments using SQL
How can I make names more distinctive without making them longer?
Should I discuss the type of campaign with my players?
Disable hyphenation for an entire paragraph
Did Xerox really develop the first LAN?
How widely used is the term Treppenwitz? Is it something that most Germans know?
How to motivate offshore teams and trust them to deliver?
Why aren't air breathing engines used as small first stages
do i need a schengen visa for a direct flight to amsterdam?
List *all* the tuples!
Is there a service that would inform me whenever a new direct route is scheduled from a given airport?
Do I really need recursive chmod to restrict access to a folder?
What are 'alternative tunings' of a guitar and why would you use them? Doesn't it make it more difficult to play?
Single word antonym of "flightless"
How to do this path/lattice with tikz
Is the Standard Deduction better than Itemized when both are the same amount?
What is a Meta algorithm?
Does surprise arrest existing movement?
Is it true that "carbohydrates are of no use for the basal metabolic need"?
How can players work together to take actions that are otherwise impossible?
Is above average number of years spent on PhD considered a red flag in future academia or industry positions?
ListPlot join points by nearest neighbor rather than order
Storing hydrofluoric acid before the invention of plastics
What do you call a phrase that's not an idiom yet?
3 doors, three guards, one stone
Running an UPDATE SQL QUERY within VBA using DAO
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)Run arbitrary INSERT INTO SQL Query using parametersSQL + VBA Populating Data in Cell RangeParameterized Query in Access SQLMatching between files and a list of filenames at scaleVBA to MS-Access SQL query set(s) and outputsMaking a report from payroll detailsMaking a report from payroll details part IIMS Access SQL query for active assigned casesVBA script to add formulas to Excel is running slowDuplicate Payments using SQL
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
$begingroup$
I have a macro in Excel that updates a recordset using WHERE
a primary key in MS Access matches a primary key in a UserForm label value. The macro is called from a Userform command button, this command button also writes about 10 different UserForm textbox values back to MS ACCESS and to a Sheet in Excel. My query in MS ACCESS is using PARAMETERS
as well.
I find that at times my UPDATE
query takes a little longer to run, and Excel will freeze. Experts, is there anything missing from my code that I should be executing?
UPDATE SQL MACRO
Sub pbsupdate()
Dim db As Database
Dim qdf As QueryDef
Application.StatusBar = "Connecting to PBS Database......"
Set db = OpenDatabase("M:Admin VisionPBS BackUP DatabaseDatabase15.mdb")
Set qdf = db.QueryDefs("pbsupdate")
Application.StatusBar = "Uploading Client Data to PBS server...."
Application.ScreenUpdating = False
Application.Calculation = xlCalculationManual
Application.EnableEvents = False
qdf!pbskey = dialer.key
qdf!pbsclient = dialer.client
qdf!pbspriority = dialer.priority_
qdf!pbssource = dialer.priority
qdf!pbslastcontact = dialer.contact
qdf!pbsresult = dialer.result
qdf!pbsnextsteps = dialer.segmentType
qdf!pbsattempts = dialer.Label11 + 1
qdf!pbsnotes = dialer.notes
Application.CalculateUntilAsyncQueriesDone
qdf.Execute dbFailOnError
qdf.Close
db.Close
Application.StatusBar = "Upload Successful!"
Set qdf = Nothing
Set cdb = Nothing
Application.Calculation = xlCalculationAutomatic
Application.EnableEvents = True
Application.ScreenUpdating = True
End Sub
USERFORM CODE
Private Sub CommandButton1_Click()
Application.ScreenUpdating = False
Application.Calculation = xlCalculationManual
Application.EnableEvents = False
Dim wb As Workbook: Set wb = ThisWorkbook
Dim Ws As Worksheet: Set Ws = wb.Sheets("clientmenu")
Dim lastrow As Long
Dim CellRow As Integer ' create a variable to hold the cell row
CellRow = ActiveCell.Row
x = Me.lblRow
CurrentRow = ActiveCell.Row
If contact.Value <> "" And result.Value = vbNullString Then
MsgBox "Please enter a result"
result.BorderColor = vbRed
result.BackColor = vbYellow
result.DropDown
Exit Sub
ElseIf contact.Value = vbNullString And result.Value <> "" Then
MsgBox "Please enter a date"
contact.BorderColor = vbRed
contact.BackColor = vbYellow
Exit Sub
End If
ClientUpdate '///calling UPDATE SQL MACRO
Unload Me
With Sheet3
lastrow = Sheet3.Range("A" & Rows.Count).End(xlUp).Row + 1
If Me.priority_ = vbNullString Then
.Cells(x, 2).Interior.Color = vbWhite
.Cells(x, 2).Font.Color = RGB(0, 0, 0)
ElseIf Me.priority_ = "None" Then
.Cells(x, 2).Interior.Color = vbWhite
.Cells(x, 2).Font.Color = RGB(0, 0, 0)
.Cells(x, 3).Value = vbNullString
ElseIf Me.priority_ = "High" Then
.Cells(x, 2) = Me.priority_.Text
ElseIf Me.priority_ = "Medium" Then
.Cells(x, 2) = Me.priority_.Text
ElseIf Me.priority_ = "Low" Then
.Cells(x, 2) = Me.priority_.Text
End If
.Cells(x, 2) = Me.client.Text
.Cells(x, 4) = Me.priority.Text
.Cells(x, 9) = Me.notes.Text
.Cells(x, 7) = Me.segmentType.Text
If Me.contact.Value = vbNullString Then
Exit Sub
Else
.Cells(x, 5) = Me.contact.Value
End If
.Cells(x, 6) = Me.result.Text
If Me.contact = vbNullString Then
ElseIf Me.contact <> vbNullString Then
.Cells(x, 8) = .Cells(x, 8) + 1
End If
End With
callbyMonth 'filters call by months
callsByDay 'filters calls by day
callsByWeek 'filters calls by week
Application.EnableEvents = True
Application.Calculation = xlCalculationAutomatic
Application.ScreenUpdating = True
End Sub
sql vba excel ms-access
New contributor
$endgroup$
add a comment |
$begingroup$
I have a macro in Excel that updates a recordset using WHERE
a primary key in MS Access matches a primary key in a UserForm label value. The macro is called from a Userform command button, this command button also writes about 10 different UserForm textbox values back to MS ACCESS and to a Sheet in Excel. My query in MS ACCESS is using PARAMETERS
as well.
I find that at times my UPDATE
query takes a little longer to run, and Excel will freeze. Experts, is there anything missing from my code that I should be executing?
UPDATE SQL MACRO
Sub pbsupdate()
Dim db As Database
Dim qdf As QueryDef
Application.StatusBar = "Connecting to PBS Database......"
Set db = OpenDatabase("M:Admin VisionPBS BackUP DatabaseDatabase15.mdb")
Set qdf = db.QueryDefs("pbsupdate")
Application.StatusBar = "Uploading Client Data to PBS server...."
Application.ScreenUpdating = False
Application.Calculation = xlCalculationManual
Application.EnableEvents = False
qdf!pbskey = dialer.key
qdf!pbsclient = dialer.client
qdf!pbspriority = dialer.priority_
qdf!pbssource = dialer.priority
qdf!pbslastcontact = dialer.contact
qdf!pbsresult = dialer.result
qdf!pbsnextsteps = dialer.segmentType
qdf!pbsattempts = dialer.Label11 + 1
qdf!pbsnotes = dialer.notes
Application.CalculateUntilAsyncQueriesDone
qdf.Execute dbFailOnError
qdf.Close
db.Close
Application.StatusBar = "Upload Successful!"
Set qdf = Nothing
Set cdb = Nothing
Application.Calculation = xlCalculationAutomatic
Application.EnableEvents = True
Application.ScreenUpdating = True
End Sub
USERFORM CODE
Private Sub CommandButton1_Click()
Application.ScreenUpdating = False
Application.Calculation = xlCalculationManual
Application.EnableEvents = False
Dim wb As Workbook: Set wb = ThisWorkbook
Dim Ws As Worksheet: Set Ws = wb.Sheets("clientmenu")
Dim lastrow As Long
Dim CellRow As Integer ' create a variable to hold the cell row
CellRow = ActiveCell.Row
x = Me.lblRow
CurrentRow = ActiveCell.Row
If contact.Value <> "" And result.Value = vbNullString Then
MsgBox "Please enter a result"
result.BorderColor = vbRed
result.BackColor = vbYellow
result.DropDown
Exit Sub
ElseIf contact.Value = vbNullString And result.Value <> "" Then
MsgBox "Please enter a date"
contact.BorderColor = vbRed
contact.BackColor = vbYellow
Exit Sub
End If
ClientUpdate '///calling UPDATE SQL MACRO
Unload Me
With Sheet3
lastrow = Sheet3.Range("A" & Rows.Count).End(xlUp).Row + 1
If Me.priority_ = vbNullString Then
.Cells(x, 2).Interior.Color = vbWhite
.Cells(x, 2).Font.Color = RGB(0, 0, 0)
ElseIf Me.priority_ = "None" Then
.Cells(x, 2).Interior.Color = vbWhite
.Cells(x, 2).Font.Color = RGB(0, 0, 0)
.Cells(x, 3).Value = vbNullString
ElseIf Me.priority_ = "High" Then
.Cells(x, 2) = Me.priority_.Text
ElseIf Me.priority_ = "Medium" Then
.Cells(x, 2) = Me.priority_.Text
ElseIf Me.priority_ = "Low" Then
.Cells(x, 2) = Me.priority_.Text
End If
.Cells(x, 2) = Me.client.Text
.Cells(x, 4) = Me.priority.Text
.Cells(x, 9) = Me.notes.Text
.Cells(x, 7) = Me.segmentType.Text
If Me.contact.Value = vbNullString Then
Exit Sub
Else
.Cells(x, 5) = Me.contact.Value
End If
.Cells(x, 6) = Me.result.Text
If Me.contact = vbNullString Then
ElseIf Me.contact <> vbNullString Then
.Cells(x, 8) = .Cells(x, 8) + 1
End If
End With
callbyMonth 'filters call by months
callsByDay 'filters calls by day
callsByWeek 'filters calls by week
Application.EnableEvents = True
Application.Calculation = xlCalculationAutomatic
Application.ScreenUpdating = True
End Sub
sql vba excel ms-access
New contributor
$endgroup$
add a comment |
$begingroup$
I have a macro in Excel that updates a recordset using WHERE
a primary key in MS Access matches a primary key in a UserForm label value. The macro is called from a Userform command button, this command button also writes about 10 different UserForm textbox values back to MS ACCESS and to a Sheet in Excel. My query in MS ACCESS is using PARAMETERS
as well.
I find that at times my UPDATE
query takes a little longer to run, and Excel will freeze. Experts, is there anything missing from my code that I should be executing?
UPDATE SQL MACRO
Sub pbsupdate()
Dim db As Database
Dim qdf As QueryDef
Application.StatusBar = "Connecting to PBS Database......"
Set db = OpenDatabase("M:Admin VisionPBS BackUP DatabaseDatabase15.mdb")
Set qdf = db.QueryDefs("pbsupdate")
Application.StatusBar = "Uploading Client Data to PBS server...."
Application.ScreenUpdating = False
Application.Calculation = xlCalculationManual
Application.EnableEvents = False
qdf!pbskey = dialer.key
qdf!pbsclient = dialer.client
qdf!pbspriority = dialer.priority_
qdf!pbssource = dialer.priority
qdf!pbslastcontact = dialer.contact
qdf!pbsresult = dialer.result
qdf!pbsnextsteps = dialer.segmentType
qdf!pbsattempts = dialer.Label11 + 1
qdf!pbsnotes = dialer.notes
Application.CalculateUntilAsyncQueriesDone
qdf.Execute dbFailOnError
qdf.Close
db.Close
Application.StatusBar = "Upload Successful!"
Set qdf = Nothing
Set cdb = Nothing
Application.Calculation = xlCalculationAutomatic
Application.EnableEvents = True
Application.ScreenUpdating = True
End Sub
USERFORM CODE
Private Sub CommandButton1_Click()
Application.ScreenUpdating = False
Application.Calculation = xlCalculationManual
Application.EnableEvents = False
Dim wb As Workbook: Set wb = ThisWorkbook
Dim Ws As Worksheet: Set Ws = wb.Sheets("clientmenu")
Dim lastrow As Long
Dim CellRow As Integer ' create a variable to hold the cell row
CellRow = ActiveCell.Row
x = Me.lblRow
CurrentRow = ActiveCell.Row
If contact.Value <> "" And result.Value = vbNullString Then
MsgBox "Please enter a result"
result.BorderColor = vbRed
result.BackColor = vbYellow
result.DropDown
Exit Sub
ElseIf contact.Value = vbNullString And result.Value <> "" Then
MsgBox "Please enter a date"
contact.BorderColor = vbRed
contact.BackColor = vbYellow
Exit Sub
End If
ClientUpdate '///calling UPDATE SQL MACRO
Unload Me
With Sheet3
lastrow = Sheet3.Range("A" & Rows.Count).End(xlUp).Row + 1
If Me.priority_ = vbNullString Then
.Cells(x, 2).Interior.Color = vbWhite
.Cells(x, 2).Font.Color = RGB(0, 0, 0)
ElseIf Me.priority_ = "None" Then
.Cells(x, 2).Interior.Color = vbWhite
.Cells(x, 2).Font.Color = RGB(0, 0, 0)
.Cells(x, 3).Value = vbNullString
ElseIf Me.priority_ = "High" Then
.Cells(x, 2) = Me.priority_.Text
ElseIf Me.priority_ = "Medium" Then
.Cells(x, 2) = Me.priority_.Text
ElseIf Me.priority_ = "Low" Then
.Cells(x, 2) = Me.priority_.Text
End If
.Cells(x, 2) = Me.client.Text
.Cells(x, 4) = Me.priority.Text
.Cells(x, 9) = Me.notes.Text
.Cells(x, 7) = Me.segmentType.Text
If Me.contact.Value = vbNullString Then
Exit Sub
Else
.Cells(x, 5) = Me.contact.Value
End If
.Cells(x, 6) = Me.result.Text
If Me.contact = vbNullString Then
ElseIf Me.contact <> vbNullString Then
.Cells(x, 8) = .Cells(x, 8) + 1
End If
End With
callbyMonth 'filters call by months
callsByDay 'filters calls by day
callsByWeek 'filters calls by week
Application.EnableEvents = True
Application.Calculation = xlCalculationAutomatic
Application.ScreenUpdating = True
End Sub
sql vba excel ms-access
New contributor
$endgroup$
I have a macro in Excel that updates a recordset using WHERE
a primary key in MS Access matches a primary key in a UserForm label value. The macro is called from a Userform command button, this command button also writes about 10 different UserForm textbox values back to MS ACCESS and to a Sheet in Excel. My query in MS ACCESS is using PARAMETERS
as well.
I find that at times my UPDATE
query takes a little longer to run, and Excel will freeze. Experts, is there anything missing from my code that I should be executing?
UPDATE SQL MACRO
Sub pbsupdate()
Dim db As Database
Dim qdf As QueryDef
Application.StatusBar = "Connecting to PBS Database......"
Set db = OpenDatabase("M:Admin VisionPBS BackUP DatabaseDatabase15.mdb")
Set qdf = db.QueryDefs("pbsupdate")
Application.StatusBar = "Uploading Client Data to PBS server...."
Application.ScreenUpdating = False
Application.Calculation = xlCalculationManual
Application.EnableEvents = False
qdf!pbskey = dialer.key
qdf!pbsclient = dialer.client
qdf!pbspriority = dialer.priority_
qdf!pbssource = dialer.priority
qdf!pbslastcontact = dialer.contact
qdf!pbsresult = dialer.result
qdf!pbsnextsteps = dialer.segmentType
qdf!pbsattempts = dialer.Label11 + 1
qdf!pbsnotes = dialer.notes
Application.CalculateUntilAsyncQueriesDone
qdf.Execute dbFailOnError
qdf.Close
db.Close
Application.StatusBar = "Upload Successful!"
Set qdf = Nothing
Set cdb = Nothing
Application.Calculation = xlCalculationAutomatic
Application.EnableEvents = True
Application.ScreenUpdating = True
End Sub
USERFORM CODE
Private Sub CommandButton1_Click()
Application.ScreenUpdating = False
Application.Calculation = xlCalculationManual
Application.EnableEvents = False
Dim wb As Workbook: Set wb = ThisWorkbook
Dim Ws As Worksheet: Set Ws = wb.Sheets("clientmenu")
Dim lastrow As Long
Dim CellRow As Integer ' create a variable to hold the cell row
CellRow = ActiveCell.Row
x = Me.lblRow
CurrentRow = ActiveCell.Row
If contact.Value <> "" And result.Value = vbNullString Then
MsgBox "Please enter a result"
result.BorderColor = vbRed
result.BackColor = vbYellow
result.DropDown
Exit Sub
ElseIf contact.Value = vbNullString And result.Value <> "" Then
MsgBox "Please enter a date"
contact.BorderColor = vbRed
contact.BackColor = vbYellow
Exit Sub
End If
ClientUpdate '///calling UPDATE SQL MACRO
Unload Me
With Sheet3
lastrow = Sheet3.Range("A" & Rows.Count).End(xlUp).Row + 1
If Me.priority_ = vbNullString Then
.Cells(x, 2).Interior.Color = vbWhite
.Cells(x, 2).Font.Color = RGB(0, 0, 0)
ElseIf Me.priority_ = "None" Then
.Cells(x, 2).Interior.Color = vbWhite
.Cells(x, 2).Font.Color = RGB(0, 0, 0)
.Cells(x, 3).Value = vbNullString
ElseIf Me.priority_ = "High" Then
.Cells(x, 2) = Me.priority_.Text
ElseIf Me.priority_ = "Medium" Then
.Cells(x, 2) = Me.priority_.Text
ElseIf Me.priority_ = "Low" Then
.Cells(x, 2) = Me.priority_.Text
End If
.Cells(x, 2) = Me.client.Text
.Cells(x, 4) = Me.priority.Text
.Cells(x, 9) = Me.notes.Text
.Cells(x, 7) = Me.segmentType.Text
If Me.contact.Value = vbNullString Then
Exit Sub
Else
.Cells(x, 5) = Me.contact.Value
End If
.Cells(x, 6) = Me.result.Text
If Me.contact = vbNullString Then
ElseIf Me.contact <> vbNullString Then
.Cells(x, 8) = .Cells(x, 8) + 1
End If
End With
callbyMonth 'filters call by months
callsByDay 'filters calls by day
callsByWeek 'filters calls by week
Application.EnableEvents = True
Application.Calculation = xlCalculationAutomatic
Application.ScreenUpdating = True
End Sub
sql vba excel ms-access
sql vba excel ms-access
New contributor
New contributor
New contributor
asked 5 mins ago
JoseJose
1
1
New contributor
New contributor
add a comment |
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "196"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Jose is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fcodereview.stackexchange.com%2fquestions%2f217531%2frunning-an-update-sql-query-within-vba-using-dao%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Jose is a new contributor. Be nice, and check out our Code of Conduct.
Jose is a new contributor. Be nice, and check out our Code of Conduct.
Jose is a new contributor. Be nice, and check out our Code of Conduct.
Jose is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Code Review Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
Use MathJax to format equations. MathJax reference.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fcodereview.stackexchange.com%2fquestions%2f217531%2frunning-an-update-sql-query-within-vba-using-dao%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown