(1) Post the SQL of the query.
INSERT INTO GrantSelect ( SetupDate, CustomerType,
CompanyName, ContactFName, ContactLName, ContactTitle,
AltContactTitle, AltContactFName, AltContactLName,
Address1, Address2, City, State, ZIP, IntAddress, IntCity,
IntState, IntZip, Country, Phone, Fax, IntPhone, IntFax,
Email, AltEmail, WebSite, Comment, Status, Expire,
Username, Password, Username2, Password2, RefererURL,
RenewalDate, Segment )
SELECT tblGS_Expired_Accounts.SetupDate,
tblGS_Expired_Accounts.CustomerType,
tblGS_Expired_Accounts.CompanyName,
tblGS_Expired_Accounts.ContactFName,
tblGS_Expired_Accounts.ContactLName,
tblGS_Expired_Accounts.ContactTitle,
tblGS_Expired_Accounts.AltContactTitle,
tblGS_Expired_Accounts.AltContactFName,
tblGS_Expired_Accounts.AltContactLName,
tblGS_Expired_Accounts.Address1,
tblGS_Expired_Accounts.Address2,
tblGS_Expired_Accounts.City, tblGS_Expired_Accounts.State,
tblGS_Expired_Accounts.ZIP,
tblGS_Expired_Accounts.IntAddress,
tblGS_Expired_Accounts.IntCity,
tblGS_Expired_Accounts.IntState,
tblGS_Expired_Accounts.IntZip,
tblGS_Expired_Accounts.Country,
tblGS_Expired_Accounts.Phone, tblGS_Expired_Accounts.Fax,
tblGS_Expired_Accounts.IntPhone,
tblGS_Expired_Accounts.IntFax,
tblGS_Expired_Accounts.Email,
tblGS_Expired_Accounts.AltEmail,
tblGS_Expired_Accounts.WebSite,
tblGS_Expired_Accounts.Comment,
tblGS_Expired_Accounts.Status,
tblGS_Expired_Accounts.Expire,
tblGS_Expired_Accounts.Username,
tblGS_Expired_Accounts.Password,
tblGS_Expired_Accounts.Username2,
tblGS_Expired_Accounts.Password2,
tblGS_Expired_Accounts.RefererURL,
tblGS_Expired_Accounts.RenewalDate,
tblGS_Expired_Accounts.Segment, *
FROM tblGS_Expired_Accounts
WHERE (((tblGS_Expired_Accounts.Status)="A"));
(2) Post the table structures.
Not sure what you mean by it...Data Type???
(3) Post how you are running the query.
If cboStatus.OldValue <> "A" And cboStatus.Value = "A" Then
intStatus = MsgBox("Are you sure you want to re-
activate this account?", _
vbYesNo + vbQuestion, "Re-Activate")
If intStatus = vbYes Then
Expire.Value = Now + 365
Comment.Value = Now & ": Reactivated
Account." & vbCrLf & Comment.Value
DoCmd.OpenQuery "q_Append_GSExpired_To_GrantSelect"
DoCmd.Requery
Else
DoCmd.CancelEvent
Exit Sub
End If
(4) Post what messages you get (if any) when you run the
query.
No messages.