Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 3
Default Append query

I am using an append query (Query1)to add the name of the current
logged on user to a table using

Expr1: fGetFullNameOfLoggedUser()

I then have a text box on a form that displays the information
contained in the table.
All works fine if I run the query, whilst it is in design mode, and
adds the name as many times as i click on the red ! mark.
In my form I have under the On open an event procedure as shown below

Private Sub Form_Open(Cancel As Integer)

If fGetFullNameOfLoggedUser = "b******y paul" Then
Command50.Visible = True
Command51.Visible = True
End If



DoCmd.OpenQuery "Query1"

DoCmd.OpenForm "frm_shutdown", , , , , acHidden

End Sub

The problem is that the text box remains empty so the name of the
current user does not show, i know the query works from what i said
earleir, can anyone see where this newbie is messing up ?

Thanks in advance
  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 1,081
Default Append query

Methinks you need to be posting this in the Access newsgroup, not the Excel
newsgroup

"Deltic" wrote:

I am using an append query (Query1)to add the name of the current
logged on user to a table using

Expr1: fGetFullNameOfLoggedUser()

I then have a text box on a form that displays the information
contained in the table.
All works fine if I run the query, whilst it is in design mode, and
adds the name as many times as i click on the red ! mark.
In my form I have under the On open an event procedure as shown below

Private Sub Form_Open(Cancel As Integer)

If fGetFullNameOfLoggedUser = "b******y paul" Then
Command50.Visible = True
Command51.Visible = True
End If



DoCmd.OpenQuery "Query1"

DoCmd.OpenForm "frm_shutdown", , , , , acHidden

End Sub

The problem is that the text box remains empty so the name of the
current user does not show, i know the query works from what i said
earleir, can anyone see where this newbie is messing up ?

Thanks in advance

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do you append one row to another? BobVanS Excel Worksheet Functions 3 August 30th 07 02:04 PM
Find and append Susan Excel Discussion (Misc queries) 0 April 25th 07 08:08 PM
Append text Jeff Excel Discussion (Misc queries) 1 February 16th 07 10:28 PM
Can I use MS Query in Excel like an Append Query in Access Sam Wardill Excel Discussion (Misc queries) 0 April 11th 06 02:41 PM
Append worksheets together in one bioyyy Excel Discussion (Misc queries) 1 October 14th 05 07:10 AM


All times are GMT +1. The time now is 08:28 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"